External links in OC user menu: target=”_blank

/settings/admin/additional has the option to add external links into the OC user menu. I need to add a link to an external application where the UI is not embeddable under the main OC UI. Instead it should be opened as a separate tab (target=” _blank). How can this be achieved?

version: OC 10.6

The External app was not made for that, its goal is having the external site within ownCloud. But wasn’t the Bookmark app made exactly for that? :wink:
Of course, you wont have shown your external site in an extra menu item, unfortunately.

If the extra menu menu item is a fixed requirement, I only see to extend the External app with such feature or create an own app for that purpose.

Or maybe this could help: I would try to create HTML-file somewhere on the server and configure the external app to point there. Finally this HTML-file could open your site in a new tab.

<!DOCTYPE html>
<html>
  <head></head>
  <body>
    <p>Please follow <a href="https://your.site.here" target="_blank">this link</a>.</p>    
  </body>
</html>

Of course this would require excluding the extra file from ownClouds file scanning/checking.

Unfortunately you cannot used redirection with

<meta http-equiv="refresh" content="0; url='https://your.site.here' target='_blank'" /> 

This ignores the target attribute, this will open the site within ownCloud.

HTH

2 Likes