Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-12383

Using cdn.host creates external links to JSP content

    Details

      Description

      The code to create the links in the header for the /html/portal/css.jsp file uses themeDisplay.getCDNHost() to create the full path for the <link>. However, hosting a JSP file on an external CDN won't work, and will just serve the raw JSP file contents back to the browser. The path needs to be created without the CDN host so it still links to the JSP file in the local portal.

      Path to file: liferay-portal-src-6.0.5/portal-web/docroot/html/common/themes/top_head.jsp

      Relevant code:
      <link href="<%= HtmlUtil.escape(PortalUtil.getStaticResourceURL(request, themeDisplay.getCDNHost() + themeDisplay.getPathContext() + "/html/portal/css.jsp")) %>" ...

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            steen.lehmann Steen Lehmann (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 35 weeks, 1 day ago

                Packages

                Version Package
                6.0.X EE
                --Sprint 11/12