You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2020/10/08 22:23:12 UTC

[GitHub] [sling-org-apache-sling-api] ghenzler commented on pull request #25: SLING-9745 Sling Uri Mapping SPI

ghenzler commented on pull request #25:
URL: https://github.com/apache/sling-org-apache-sling-api/pull/25#issuecomment-705854489


   An aspect that was missing is that sometimes, independent of if you have a request at hand or not, you need to force an absolute URI to be generated. E.g. while producing an html rendering with HTL, most links may remain relative to host (starting with `/`) but one link could be rendered in a data attribute to be consumed by a third-party REST API (that expects a full absolute URI). For this I added a parameter `forceAbsoluteUri` in 21dc4a27d33b9d89a20516df9401a0a3f64237a2 . I think this is needed to cover all use cases (especially from HTL where this can be an additional attribute on URIs), but also for API calls from elsewhere.  @cziegeler WDYT?
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org