When including a page using the "

      {html-include}

      " macro in Confluence with a URL served up by an Apache web server, the text from the page is shown in Confluence, but all of the formatting styles are lost.

      My macro command is:

      {html-include:url=http://portal.mydept.mycompany.com}

      Attached are two screen shots: the page that should be displayed; and the way it is displayed in Confluence.

        1. apache.jpg
          apache.jpg
          126 kB
        2. apacheConfluence.jpg
          apacheConfluence.jpg
          123 kB

            [CONFSERVER-6384] {html-include} does not preserve styles of included pages

            Hi rob.whitney

            Thanks for taking the time to raise this issue. This has been on the backlog now for 8 years with very little movement in that time. Rather than leaving this here I'm going to close this out as won't fix, I believe it better reflects the status of the issue.

            If the problem is raised again in the future we will re-address it.

            Regards
            Steve Haffenden
            Confluence Bugmaster
            Atlassian

            Steve Haffenden (Inactive) added a comment - Hi rob.whitney Thanks for taking the time to raise this issue. This has been on the backlog now for 8 years with very little movement in that time. Rather than leaving this here I'm going to close this out as won't fix, I believe it better reflects the status of the issue. If the problem is raised again in the future we will re-address it. Regards Steve Haffenden Confluence Bugmaster Atlassian

            I wrote a macro to fix the issues you saw, specifically its about relative URL's. By adding them in the page you are effectively doing this, it works but is a pain. I haven't released this macro on CONFEXT anywhere yet, I'm hoping it will get taken in to the main codebase.

            Andy Brook (Javahollic Software) added a comment - I wrote a macro to fix the issues you saw, specifically its about relative URL's. By adding them in the page you are effectively doing this, it works but is a pain. I haven't released this macro on CONFEXT anywhere yet, I'm hoping it will get taken in to the main codebase.

            I use the following hack/workaround:

            {html}
            <style>
            <!-- Contents of original stylesheet(s) goes here -->
            </style>
            {html}
            {html-include:url=http://www.example.com|preservehtml=true}
            

            Christian Løverås added a comment - I use the following hack/workaround: {html} <style> <!-- Contents of original stylesheet(s) goes here --> </style> {html} {html-include:url=http: //www.example.com|preservehtml= true }

              shaffenden Steve Haffenden (Inactive)
              ffd47060-24e5-4e76-8ba2-cdac367441c8 Deleted Account (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: