Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
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
- is a part of
-
HSTTWO-2926 Mount to preview decoration does not decorate the backing host(s) and port mounts
- Closed
- relates to
-
HSTTWO-2895 View in channel for document does not work if the document can only be displayed by a preview sitemap item which is not yet live
- Closed