Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-4575

HstLinkTag without any parameters should create link to current page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.6.2
    • Fix Version/s: 13.3.0
    • Component/s: None
    • Similar issues:
    • Flagged:
      Flagged

      Description

      If no parameter (hippobean or path) is provided to HstLinkTag, path info is used to create a link:

         // hst link for current URL requested
                      if (reqContext != null && reqContext.getResolvedSiteMapItem() != null) {
                          path = reqContext.getResolvedSiteMapItem().getPathInfo();
                      }
      

      For paths which are using *index * sitemaps, this produces incorrect paths:

      e.g. instead of:

      /site/content/testing
      

      result is:

      /site/content/testing/_index_
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mmilicevic Marijan Milicevic
              Owner:
              Hippo Helpdesk
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: