You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ali Shah (Jira)" <ji...@apache.org> on 2019/10/11 12:16:00 UTC
[jira] [Commented] (SLING-7548) HTL url manipulation for external
link without extension
[ https://issues.apache.org/jira/browse/SLING-7548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16949403#comment-16949403 ]
Ali Shah commented on SLING-7548:
---------------------------------
Hi Konrad!
To make this request clear and to answer your question "Why do you expect that only URLs not starting with a host are modified through that filter?"
Recently, I had a case where we are adding different icons for links on a website depending on whether external or internal as a visual help for a website visitor.
Editors are adding relative paths for internal links as usual and for external link with an external domain (e.g. [www.guugle.com/dir/index.asp).|http://www.guugle.com/dir/index.asp)]
In our case this filter would produce urls like this ..
path: /content/siteA/page1 -> /content/siteA/page1.html
path: /content/siteA/page2-> /content/siteA/page2.html
[path: www.guugle.com/dir/index.asp |http://www.guugle.com/dir/index.asp)]-> [www.guugle.com/dir/index.html |http://www.guugle.com/dir/index.htl](not desired)
The external link becomes here unaccessibe due to the wrong extension. We could not use the filter here, a parameter to ignore the links with domain name woud help.
Yes, absolute paths with a domain can also point to internal resources. But mostly on an author instance editors while editing links would not add domain names for internal links ?!
> HTL url manipulation for external link without extension
> --------------------------------------------------------
>
> Key: SLING-7548
> URL: https://issues.apache.org/jira/browse/SLING-7548
> Project: Sling
> Issue Type: Bug
> Reporter: Pony Soeung
> Priority: Major
>
> For $\{'[https://www.adobe.com|https://www.adobe.com/fr/]' @ extension ='html'}, the url is untouched. OK
> For $\{'[https://www.adobe.com/fr/]' @ extension ='html'}, '.html' is added to the url. KO
--
This message was sent by Atlassian Jira
(v8.3.4#803005)