[MGNLSTK-696] Support for external links with the Redirect template Created: 03/Nov/10  Updated: 16/May/11  Resolved: 17/Dec/10

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: templates
Affects Version/s: 1.3.5
Fix Version/s: 1.4.2

Type: Bug Priority: Major
Reporter: Vivian Steller Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File redirect.ftl    
Issue Links:
relation
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Date of First Response:

 Description   

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)



 Comments   
Comment by Vivian Steller [ 03/Nov/10 ]

use the attached redirect.ftl file to fix the issue

Comment by Magnolia International [ 17/Dec/10 ]

Thanks, patch applied !

Generated at Mon Feb 12 07:29:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.