diff options
author | Dave Rolsky <autarch@urth.org> | 2020-09-28 19:43:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 19:43:06 +0300 |
commit | 0fb4eafa637c073f8ab304bc5fb495c27521f672 (patch) | |
tree | 561786480933d35797841900562da48403f55bbf /CONTRIBUTORS.md | |
parent | b3fab506bf47a40d32485a575d37ae8514fe829e (diff) |
Use relative URLs everywhere and remove <base> tag (#411)
There were a few places still using absolute URLs, including <link rel="icon">
tags, <link rel="alternate"> tags, and nav menu links. In addition, the
presence of a <base> tag caused the browser to absolute-ize all relative
URLs. This also removed "canonifyurls = true" from the example site config.
This is a problem for things like render.com, which will put the site on its
own domain for previews. For example, I have a preview site at
https://houseabsolute-com.onrender.com/. Ultimately this will be served at
https://houseabsolute.com/, but before I switched over I wanted to preview the
site.
The absolute URLs were being generated for https://houseabsolute.com/ because
of my baseURL setting in config and the presence of the <base> tag. This
completely breaks the preview site.
Diffstat (limited to 'CONTRIBUTORS.md')
-rw-r--r-- | CONTRIBUTORS.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index d524a51..ca02f49 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -76,3 +76,4 @@ - [Lorenzo Cameroni](https://github.com/came88) - [Jared Sturdy](https://github.com/jsturdy) - [Daniel Monteiro](https://github.com/dfamonteiro) +- [Dave Rolsky](https://github.com/autarch) |