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

When choosing a folder in the sitemenu item picker, the folder can be incorrectly selectable as link

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 3.2.0
    • None

    Description

      The problem is as follows:

      When for example the sitemap looks as follows:

      -news  (contentpath = news)
         **.html  (contentpath = news/${1})
      

      then, the folder /news/2010 resolves via the link rewriting to /news/2010.html. It is debatable whether this is a good thing. We should not change this in the linkrewriting because we risk backwards incompatible changed behavior. Instead in org.hippoecm.hst.pagecomposer.jaxrs.model.treepicker.DocumentTreePickerRepresentation which makes the folder/document representation, I will test whether the created link matches a sitemapitem with extension (eg .html) but the node was a folder: In that case, set selectable = false

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: