Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-6567

HTML Include macro should rewrite relative links to point to remote site

      If you use the

      {html-include}

      macro to include an HTML page that has relative links, navigating those links in the Wiki results in wiki "Page Not Found" error. This restricts the HTML include macro to pages with absolute links.

            [CONFSERVER-6567] HTML Include macro should rewrite relative links to point to remote site

            Think I am having this problem. Has anyone been able to make this work recently?

             

            I am not allowed to purchase plugins for a big "On-Prem" instance of Confluence.  Why would Atlassian recommend (or allow) a 3rd party plugin (especially at an additional cost) be the fix to their bug???  

             

            Here is my scenario:

             

            1) I am on an "On-Prem" instance of Confluence. The URL is something like:

                (Note this on machine 1)

                https://machine1.big.researchdomain.net/display/myproject/

             

            2) I have a page on this Confluence instance called "InformationPage" so the full URL is:

                (Note this on machine 1)

                https://machine1.big.researchdomain.net/display/myproject/InformationPage

             

            3) Also on the network is separate web server hosting a separate webpage (under another co-teams control):

                (Note this on machine 2)

                https://machine2.big.researchdomain.net/different-page-I-want-to-display-in-confluence.html

             

            4) On this "different-page-I-want-to-display-in-confluence.html" page, there are some referenced URL's:

                (Note they are all also hosted on machine 2 - the same separate web server under another co-teams control)

                https://machine2.big.researchdomain.net/infopageA.html

                https://machine2.big.researchdomain.net/infopageB.html

                https://machine2.big.researchdomain.net/infopageC.html

             

            5) I was able to get the "HTML Macro" and the "HTML Include Macro" working

             

            6) I was able to get this URL of the other server (machine 2 - https://machine2.big.researchdomain.net ) added to the allowlist of trusted URLs in Confluence (again on machine 1).

             

            7) When I add a "HTML Macro" OR "HTML Include Macro" to my Confluence page it works! (but wait for it)

                (again my Confluence page on machine 1)

                https://machine1.big.researchdomain.net/display/myproject/InformationPage

             

                (the page from machine 2... that is now being displayed on my Confluence page on machine 1)

                https://machine2.big.researchdomain.net/different-page-I-want-to-display-in-confluence.html

             

                (now all the URL's on that page are being rewritten)
                (Note they are all pointing to machine 1 and not machine 2 like they are supposed to... see #4 above)

                https://machine1.big.researchdomain.net/infopageA.html

                https://machine1.big.researchdomain.net/infopageB.html

                https://machine1.big.researchdomain.net/infopageC.html

             

            Lastly, this is a single very simple example of a much bigger problem for me. My actual problems are more complicated (but same principle). Other problems include:

            • pages that call other dynamic javascripts and web service URLs to build pages that when displayed via Confluence do not work due to rewriting.
            • pages that display, but the data that feeds the page is via another service call (so no data ever arrives).
            • pages that display, but the formatting (CSS, etc.) that is needed is never called therefore the page is not readable (as it never formatted).

             

            HELP!!!!

            Jason Freedman added a comment - Think I am having this problem. Has anyone been able to make this work recently?   I am not allowed to purchase plugins for a big "On-Prem" instance of Confluence.   Why would Atlassian recommend (or allow) a 3rd party plugin (especially at an additional cost) be the fix to their bug???      Here is my scenario:   1) I am on an "On-Prem" instance of Confluence. The URL is something like:     (Note this on machine 1)      https://machine1.big.researchdomain.net/display/myproject/   2) I have a page on this Confluence instance called "InformationPage" so the full URL is:     (Note this on machine 1)      https://machine1.big.researchdomain.net/display/myproject/InformationPage   3) Also on the network is separate web server hosting a separate webpage (under another co-teams control):     (Note this on machine 2)      https://machine2.big.researchdomain.net/different-page-I-want-to-display-in-confluence.html   4) On this "different-page-I-want-to-display-in-confluence.html" page, there are some referenced URL's:     (Note they are all also hosted on machine 2 - the same separate web server under another co-teams control)      https://machine2.big.researchdomain.net/infopageA.html      https://machine2.big.researchdomain.net/infopageB.html      https://machine2.big.researchdomain.net/infopageC.html   5) I was able to get the "HTML Macro" and the "HTML Include Macro" working   6) I was able to get this URL of the other server (machine 2 -  https://machine2.big.researchdomain.net  ) added to the allowlist of trusted URLs in Confluence (again on machine 1).   7) When I add a "HTML Macro" OR "HTML Include Macro" to my Confluence page it works! (but wait for it)     (again my Confluence page on machine 1)      https://machine1.big.researchdomain.net/display/myproject/InformationPage       (the page from machine 2... that is now being displayed on my Confluence page on machine 1)      https://machine2.big.researchdomain.net/different-page-I-want-to-display-in-confluence.html       (now all the URL's on that page are being rewritten)     (Note they are all pointing to machine 1 and not machine 2 like they are supposed to... see #4 above)      https://machine1.big.researchdomain.net/infopageA.html      https://machine1.big.researchdomain.net/infopageB.html      https://machine1.big.researchdomain.net/infopageC.html   Lastly, this is a single very simple example of a much bigger problem for me . My actual problems are more complicated (but same principle). Other problems include: pages that call other dynamic javascripts and web service URLs to build pages that when displayed via Confluence do not work due to rewriting. pages that display, but the data that feeds the page is via another service call (so no data ever arrives). pages that display, but the formatting (CSS, etc.) that is needed is never called therefore the page is not readable (as it never formatted).   HELP!!!!

            Seconding... now that Portfolio is actually usable, I can't post a link to it in Confluence, I guess because it's a relative link.  Yes, I've had the admin turn on the macro and white list the site.

            Wow... get your apps to talk to each other.

            Stacy Menas added a comment - Seconding... now that Portfolio is actually usable, I can't post a link to it in Confluence, I guess because it's a relative link.  Yes, I've had the admin turn on the macro and white list the site. Wow... get your apps to talk to each other.

            Andy Brook added a comment -

            >  mean does Atlassian reject ANY feature request, that already provided by ANY 3rd party software complient with Atlassian product?

            Historically (and I mean many years ago) the theory was no, Atlassian would not stomp over an existing app with a duplicate of the functionality, and if they wanted it badly enough (flash workflow editor, Valiantys SLA), then they'd buy the app.  Of late, it seems like there has been a sea change, where even a pre-existing non-trivial solution such as Enterprise Mail Queue for Jira that's been around for 5years providing Email Digesting functionality in Jira as a solution to JRA-1369 suddenly becomes the target of a new feature Email Digesting coming soon in Jira8.  Nobody contact us!  Apparently, after we reached out,, the person leading that feature saw no conflict between EMQ Email Digester and Jira Email Digesting.  I can't tell if this is a deliberate change in policy or an exceptionally poorly handled fit-gap analysis by Atlassian staff.

            CHTMLIR was written to solve my own problems, integrating local net web server CGI output, it was great!   Commercially, sure, its not a killer app, its a point solution, don't be grumpy, be happy someone bothered to solve a problem, support them even!  Maybe if you have a related problem such a smaller company will be agile enough to actually do something to help you.

            Andy Brook added a comment - >  mean does Atlassian reject ANY feature request, that already provided by ANY 3rd party software complient with Atlassian product? Historically (and I mean many years ago) the theory was no, Atlassian would not stomp over an existing app with a duplicate of the functionality, and if they wanted it badly enough (flash workflow editor, Valiantys SLA), then they'd buy the app.  Of late, it seems like there has been a sea change, where even a pre-existing non-trivial solution such as Enterprise Mail Queue for Jira  that's been around for 5years  providing Email Digesting functionality in Jira as a solution to  JRA-1369  suddenly becomes the target of a new feature Email Digesting coming soon in Jira8.  Nobody contact us!  Apparently, after we reached out,, the person leading that feature saw no conflict between EMQ Email Digester and Jira Email Digesting.  I can't tell if this is a deliberate change in policy or an exceptionally poorly handled fit-gap analysis by Atlassian staff. CHTMLIR was written to solve my own problems, integrating local net web server CGI output, it was great!   Commercially, sure, its not a killer app, its a point solution, don't be grumpy, be happy someone bothered to solve a problem, support them even!  Maybe if you have a related problem such a smaller company will be agile enough to actually do something to help you .

            Alexander Luchkov added a comment - - edited

            Is an issue resolution a result of official Atlassian policy?

            I mean does Atlassian reject ANY feature request, that already provided by ANY 3rd party software complient with Atlassian product?

            If it is not I think it would be nice enough to motivate your rejection.

            Alexander Luchkov added a comment - - edited Is an issue resolution a result of official Atlassian policy? I mean does Atlassian reject ANY feature request, that already provided by ANY 3rd party software complient with Atlassian product? If it is not I think it would be nice enough to motivate your rejection.

            HUP GmbH added a comment -

            Sorry, "Jambit Sysadmin" is right. So you want to tell us that we have to buy something and this is the reason why you don't do anything. Stupid, unpolite and awful!

            HUP GmbH added a comment - Sorry, "Jambit Sysadmin" is right. So you want to tell us that we have to buy something and this is the reason why you don't do anything. Stupid, unpolite and awful!

            Considering that the macro you linked to costs money while this one is part of Confluence, I think closing this with WontFix is not acceptable.

            Jambit Sysadmin added a comment - Considering that the macro you linked to costs money while this one is part of Confluence, I think closing this with WontFix is not acceptable.

            As this functionality is now provided by an add-on made and maintained by The Plugin People, I'm going to close this issue as Won't Fix.

            Denise Unterwurzacher [Atlassian] (Inactive) added a comment - As this functionality is now provided by an add-on made and maintained by The Plugin People , I'm going to close this issue as Won't Fix.

            Hi Rambabu, lets continue this @ https://thepluginpeople.atlassian.net/browse/CHTMLIR - please raise a feature request, and explain a little more about the mechanics of how you'd see refreshes work?

            Andy Brook [Plugin People] added a comment - Hi Rambabu, lets continue this @ https://thepluginpeople.atlassian.net/browse/CHTMLIR - please raise a feature request, and explain a little more about the mechanics of how you'd see refreshes work?

            rambabu patina added a comment - - edited

            Hi Andy,

            Is it possible to import the html permanently to the confluence? . I was hoping for something that would import the html permanently into the confluence. This one seems to do the import on every access, which is very nice but I need to have the document updated by many people in the organization. The Confluence provides a way to tag and track changes that are not available in straight html. Could you please let me know if it is possible.

            Thanks & Regards,
            Rambabu

            rambabu patina added a comment - - edited Hi Andy, Is it possible to import the html permanently to the confluence? . I was hoping for something that would import the html permanently into the confluence. This one seems to do the import on every access, which is very nice but I need to have the document updated by many people in the organization. The Confluence provides a way to tag and track changes that are not available in straight html. Could you please let me know if it is possible. Thanks & Regards, Rambabu

            Its been submitted to Atlassian today for review, largely unchanged since last submitted a year ago - have been busy !

            Andy Brook [Plugin People] added a comment - Its been submitted to Atlassian today for review, largely unchanged since last submitted a year ago - have been busy !

              Unassigned Unassigned
              01fc6e9af467 Jim Dibble
              Affected customers:
              25 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: