You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "samueleresca (via GitHub)" <gi...@apache.org> on 2024/03/04 11:10:37 UTC

[I] Avoid using `$page.base$` when loading the template assets and the `assets.hostname` is specified [incubator-pekko-sbt-paradox]

samueleresca opened a new issue, #128:
URL: https://github.com/apache/incubator-pekko-sbt-paradox/issues/128

   There are some static assets that are loaded by appending both the `assets.hostname` and the `path.base`. Few examples below:
   
   - `$page.properties.("assets.hostname")$$page.base$$page.properties.("material.favicon")$`
   - `$page.properties.("assets.hostname")$$page.base$assets/javascripts/groups.js`
   - `$page.properties.("assets.hostname")$$page.base$assets/javascripts/application.583bbe55.js"`
   
   The examples provided lead to the following links in case the loaded page is in a subfolder:
   
   - `https://pekko.apache.org/../assets/images/pekko_favicon.png`
   - `https://pekko.apache.org/../assets/javascripts/groups.js`
   - `https://pekko.apache.org/../assets/javascripts/application.583bbe55.js`
   
   Where `page.base` is `../` and `assets.hostname` is `https://pekko.apache.org`.
   
   Note that the paths containing `../` are normalized by default. So `https://pekko.apache.org/../assets/images/pekko_favicon.png` becomes `https://pekko.apache.org/assets/images/pekko_favicon.png`.
   
   This issue is for removing `page.base` from all the static assets loaded using the `assets.hostname` property
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org