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

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 5.6.2
    • 13.3.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: