Icinga / icingaweb2

A lightweight and extensible web interface to keep an eye on your environment. Analyse problems and act on them.
https://icinga.com/get-started/
GNU General Public License v2.0
798 stars 276 forks source link

Custom navigation items: Improve target Single Column URL #5222

Open 2sh opened 1 month ago

2sh commented 1 month ago

Is your feature request related to a problem? Please describe.

Making use of the custom navigation feature and making the URL a path outside of /icingaweb2 but on the same domain, while the target "Single Column" opens the specified URL on the right of the Icingaweb menu, the URL of the current page also changes to that specified URL. This means that when you refresh the page (or go back to the page tab after the browser has discarded it for whatever reason), it loads the specified URL, taking you out of the Icingaweb view entirely. This can be rather confusing.

Describe the solution you'd like

When navigating to the custom navigation item with target "Single Column", let the the URL be an internal URL, something under "/icingaweb2/navigation/" perhaps.

2sh commented 1 month ago

I've now realised Icingaweb puts the URL after "iframe?url=" if it's under a different domain and changes it to a relative path if on the same domain. This causes the previously mentioned behaviour if that path is outside of the /icingaweb2 path though, somewhat of a bug really. A workaround I'm using now is to specify the URL with "iframe?url=" before it.