Skip to content

absolute option "host" disable ? #159

Answered by ogizanagi
stloc asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stloc
Comment options

@ogizanagi
Comment options

@stloc
Comment options

Answer selected by ogizanagi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants