Details
-
Bug
-
Resolution: Won't Do
-
Neutral
-
None
-
None
-
None
-
None
-
MGNL 5.3.10
Java 1.7.80
Tomcat 8.0.28
Description
The solution from MGNLFORM-249 results in an error in our environment.
We are generating complete Urls (like https://demopublic.magnolia-cms.com/contact.html) in our project. The reason is that we are sharing our header and footer with some micro-sites outside. These websites are hosted and maintened by partners. We implemented it because our users should not relize that they left our website. That's the reason why we changed the result of LinkUtil.createAbsoluteLink(). The encoded url result is https%3A// which results in final redirect (org.apache.catalina.connector.Response#toAbsolute(String) to https://demopublic.magnolia-cms.com/https%3A//...
Even if a different implementation would be better in our project there are 2 issues for me:
- I would expect the LinkUtil.createAbsoluteLink() is generating the correct link to the content and
- FormStateUtil.sendRedirect(String uuid, String workspace) does not encode the rederict URL
Checklists
Acceptance criteria