Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-696

Support for external links with the Redirect template

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.4.2
    • 1.3.5
    • templates
    • None
    • Yes

      The Redirect template shows Freemarker error in edit mode when redirect target is an external URL.

      To reproduce:

      1. log in to demoauthor http://demoauthor.magnolia-cms.com/.magnolia/pages/adminCentral.html
      2. create a page using the template "Redirect"
      3. open the page, edit the page properties
      4. use an external link, e.g. "http://www.magnolia-cms.com/"
      5. save

      Result: Freemarker error:
      No signature of method createLink matches the arguments
      The problematic instruction:
      ----------
      ==> ${mgnl.createLink(mgnl.getContent(content.path))!''} [on line 5, column 18 in templating-kit/templates/functional/redirect.ftl]
      ----------

      Expected result:
      Some info like "This page will redirect to http://www.magnolia-cms.com/" (as it is with internal links, which is working correctly)

        Acceptance criteria

              gjoseph Magnolia International
              vivi Vivian Steller
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: