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

Incorrect link in the notification email when public site Virtual Hosts is set

    Details

      Description

      When the portal Virtual Hosts is domain.com and in the Site config the public Virtual Hosts is set to public.domain.com, the links to the content created utilizing the liferay-ui:discussion taglib are incorrect when sending email notifications.

      Actual:
      https://domain.com/group/guest/layout/-/portlet/identifier

      Expected:
      https://public.domain.com/group/guest/layout/-/portlet/identifier

      This is caused by utilizing the PortalUtil.getCanonicalURL method in the
      https://github.com/liferay/liferay-portal/blob/6.2.x/portal-web/docroot/html/taglib/ui/discussion/page.jsp for the contentURL attribute.

      This method returns the base portal URL ignoring that Site settings. In my opinion this should be fixed inside getCanonicalURL, not in the taglib itself as there might be other occurrences of similarly broken links (I am experiencing this issue as well https://issues.liferay.com/browse/LPS-45459 which has most likely the same root cause).

      Another one seems to be related as well:
      https://issues.liferay.com/browse/LPS-56353

        Attachments

          Activity

            People

            • Assignee:
              harry.chai Harry Chai
              Reporter:
              honyk Jan Tošovský
              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:
                3 years, 11 weeks, 6 days ago

                Packages

                Version Package