You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a Docker container to test my site, either locally or with a GitHub Codespace. It works marvelously, for everything except one detail: many of the links are absolute URLs saying "http://0.0.0.0:4000/...". These are constructed as href attributes something like this:
href="{{ post.url | absolute_url }}"
These will never work in a container environment, since the container and server cannot possibly know how traffic is being directed to them, often through some generated domain name.
The relative_url filter seems to be the appropriate one in all cases, as far as I can tell. Your theme has about an even mix of both absolute_url and relative_url. Is there a reason they are not all relative_url?
The text was updated successfully, but these errors were encountered:
I'm using a Docker container to test my site, either locally or with a GitHub Codespace. It works marvelously, for everything except one detail: many of the links are absolute URLs saying "http://0.0.0.0:4000/...". These are constructed as
href
attributes something like this:These will never work in a container environment, since the container and server cannot possibly know how traffic is being directed to them, often through some generated domain name.
The
relative_url
filter seems to be the appropriate one in all cases, as far as I can tell. Your theme has about an even mix of bothabsolute_url
andrelative_url
. Is there a reason they are not allrelative_url
?The text was updated successfully, but these errors were encountered: