-
result : no host/url insert |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @stloc . I'm not sure to follow, what would you expect? Why do you need absolute URLs? Note Stenope does nothing regarding this, so this might be something you need to explore more specifically with Symfony assets packages, webpack encore config & Twig For instance, here is how we render absolute URLs where required in our website: For Webpack, when deploying to a subdirectory and exposing the static files under a base URL, you might need this: where |
Beta Was this translation helpful? Give feedback.
Hi @stloc .
I'm not sure to follow, what would you expect? Why do you need absolute URLs?
Note Stenope does nothing regarding this, so this might be something you need to explore more specifically with Symfony assets packages, webpack encore config & Twig
absolute_url
function.For instance, here is how we render absolute URLs where required in our website:
https://github.com/Elao/elao_/blob/3be506d1ce96d34902cd7145c5dadbb0c1f28ed4/templates/blog/article.html.twig#L9-L10
For Webpack, when deploying to a subdirectory and exposing the static files under a base URL, you might need this:
https://github.com/Elao/elao_/blob/3be506d1ce96d34902cd7145c5dadbb0c1f28ed4/webpack.config.js#L12-L15
where
…