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

Link to URL redirection does not keep anchors in URL if SPA is enabled

    Details

    • Fix Priority:
      3

      Description

      Steps to reproduce (SPA enabled):

      1. Add a Widget Page called 'test'.
      2. Add a Basic Web Content called 'Content A' add with the following content:  
        <div style="height: 1000px">&nbsp;</div>
        <p id="content_a">Dummy text</p>
        
      1. Place 'Content A' in 'test'.
      2. Add a Link to URL page called 'goToAnchor', and define its URL as: http://localhost:7100/web/guest/test#content_a
      3. Configure the Navigation Menu of the home page with the attached Display Template, in which hrefs of each item are defined as the layouts friendlyURLs.
      4. From the Navigation Menu click on 'goToAnchor' page.

      Expected result: you are redirected to http://localhost:7100/web/guest/test#content_a ('Dummy Text')

      Actual result: you are redirected to http://localhost:7100/web/guest/test (top of the page), the anchor reference is lost.

      Note: if you open 'goToAnchor' in a different tab (right button -> open link in a different tab) the result is the expected.

        Attachments

          Activity

            People

            Assignee:
            cristina.rodriguez Cristina Rodriguez
            Reporter:
            cristina.rodriguez Cristina Rodriguez
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Engineering Assignee:
            Cristina Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              50 weeks, 4 days ago

                Packages

                Version Package