Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
3.1
-
None
-
None
Description
UuidRedirectView uses method LinkUtil.convertUUIDtoURI(uuid, workspace). This method currently calls: LinkTransformerManager.getInstance().getAbsolute(false).transform(createLinkInstance(workspaceName, uuid))
returning /siteName/page.html
following works better:
LinkTransformerManager.getInstance().getAbsolute(true).transform(createLinkInstance(workspaceName, uuid)):
/page.html
where getAbsolute parameter is boolean addContextPath - this setting affects more than it's documented:
Creates instance of absolute link transformer that will optionally prepend the context path, but will always use URI2Repository mapping while constructing links and will localize the link if localization is set up.
Also UuidRedirectViewResolver creates UuidRedirectView directly. Wouldn't it be better to use Components.newInstance here?
Checklists
Acceptance criteria