Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-280

building url redirects

    XMLWordPrintable

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:

      1. I would expect the LinkUtil.createAbsoluteLink() is generating the correct link to the content and
      2. FormStateUtil.sendRedirect(String uuid, String workspace) does not encode the rederict URL

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              nlamig Noa Lamig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD