Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14542

HstLinkCreator fails to a create a link with advanced sitemap configuration

    XMLWordPrintable

Details

    • Flagged
    • Quasar
    • Puma Sprint 261

    Description

      Consider this site map:

      /hst:myproject/hst:configurations/myproject/hst:sitemap
        /_default_:
          /_default_:
            /faq:
              /_any_:
                hst:relativecontentpath: faq/${1}/${2}/${3}
          /faq:
            /_any_:
              hst:relativecontentpath: faq/${1}/${2}
      

      Then document /content/documents/myproject/faq/a/b/c maps back correctly based on the first branch in the site map.
      Expected and actual relative URL: /site/a/b/faq/c

      However for document /content/documents/myproject/faq/d/e, the mapping should be based on the second branch but it fails.
      Expected relative URL: /site/d/faq/e
      Actual: /site/pagenotfound

      See attached archetype myproject on 14.5.0. Creating a link is done in code in MyListComponent.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhoffman Jeroen Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: