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

Breadcrumb links do not include doAsUserId when impersonating a different user

    Details

      Description

      When impersonating a user all the breadcrumb links for the organization hierarchy do not include the doAsUserId parameter.
      The last entry (current page) does include the parameter.

      The URL is built in breadcrumb/init.jsp using

      String layoutSetFriendlyURL = PortalUtil.PortalUtil(layoutSet, themeDisplay);

      Unlike PortalUtil.getLayoutURL, PortalUtil.PortalUtil does not use addPreservedParameters to add the preserved parameters.

      Test:
      Create an organization with a sub-organization and sites for each.
      Assign a user to this organizations and impersonate the user.
      Navigate to the sub-organization site and inspect the links in the breadcrumb.

        Attachments

        1. fail.PNG
          fail.PNG
          114 kB
        2. fix-breadcrumb.gif
          fix-breadcrumb.gif
          2.82 MB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 42 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE B1