[ http://jira.magnolia-cms.com/browse/MGNLSTK-696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vivian Steller updated MGNLSTK-696: ----------------------------------- Comment: was deleted (was: To fix the issue simply change the template to the following: [#assign cms=JspTaglibs["cms-taglib"]] [...@cms.mainbar dialog="stkRedirect" /] <p style="margin-top:40px"> [#if mgnl.editMode && content.path?has_content] [#if content.path?starts_with("/")] [#assign path="${mgnl.createLink(mgnl.getContent(content.path))!''}"] [#else] [#assign path=content.path] [/#if] This page will redirect to <a href="${path}">${path}</a> [#else] Please define a path where to redirect the request. [/#if] </p>) > Redirect template shows Freemarker error in edit mode when redirect target is > an external URL > --------------------------------------------------------------------------------------------- > > Key: MGNLSTK-696 > URL: http://jira.magnolia-cms.com/browse/MGNLSTK-696 > Project: Magnolia Standard Templating Kit > Issue Type: Bug > Components: templates > Affects Versions: 1.3.5 > Reporter: Vivian Steller > Assignee: Zdenek Skodik > Attachments: redirect.ftl > > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > To reproduce: > # log in to demoauthor > http://demoauthor.magnolia-cms.com/.magnolia/pages/adminCentral.html > # create a page using the template "Redirect" > # open the page, edit the page properties > # use an external link, e.g. "http://www.magnolia-cms.com/" > # 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) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------