I have both Jira Helpdesk and Confluence running behind an nginx proxy. Many Confluence articles are embedded withing Helpdesk.
For security reasons, many routes are disabled by nginx. Basically, just https://knowledgebase.my-awesome-domain.org/plugins/servlet/remotepageview?pageId=123 is alllowed (+ routes for scripts and attachments)
That works pretty fine - except for HTML links within Confluence. They will open in a new ta an try to open a page like https://knowledgebase.my-awesome-domain.org/display/ESD2/Name+of+the+article - which is of course not allowed and never will be allowed.
So, how can I achieve that:
* internal links within Confluence articles within Helpdesk are opened within the same Helpdesk iframe instead of a new tab
* internal links within Confluence articles within Helpdesk are addressed by their page id via the servlet route (like /plugins/servlet/remotepageview?pageId=123) and not their name or anything else (like https://knowledgebase.my-awesome-domain.org/pages/viewpage.action?pageId=123 - which is also forbidden)
?