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

When having a preview decorated mount, then via that mount only preview decorated mounts should be accessible

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.28.00
    • None
    • None

    Description

      Currently, the DefaultHstLinkCreator contains code like this:

      List<Mount> mountsForHostGroup = mount.getVirtualHost().getVirtualHosts().getMountsByHostGroup(mount.getVirtualHost().getHostGroupName());

      if (Mount.PREVIEW_NAME.equals(mount.getType()) && isCmsRequest)

      { mountsForHostGroup = decorateMountsToPreview(mountsForHostGroup); }

      It would be better and less error prone, when 'mount is a preview docorated mount', that mount.getVirtualHost().getVirtualHosts().getMountsByHostGroup would return preview decorated mounts only (and all other model methods as well)

      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: