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
Is there any reason why most of our links are full URLs instead of relative paths? E.g. at line 9 of ./content/_index.md, we link to the Statement of Purpose of SIG SSLA by linking to https://sslarch.github.io/about/ instead of linking simply to ./about/ (which works, I checked).
The reason I raise this is that, for example, I just moved one of our pages under /documents/ to its own page, and of course that would break the whole link once the document is out - while relative links would tend to be more stable.
We are not doing so much linking that this is going to kill the website, I was wondering if there is any good reason for this.
I'm not aware of any reason to use absolute URLs. Using relative URLs also has the advantage that, if we ever add multilingual pages in the future, Hugo can automatically rewrite links to them. You don't need the ./ (i.e. href="about/" is fine).
Incidentally if you are moving a page you should leave a redirect at the old location, in case there are any incoming links. For example, by adding this to the frontmatter of the "join us" page:
Activity
joeroe commentedon Jun 11, 2026
I'm not aware of any reason to use absolute URLs. Using relative URLs also has the advantage that, if we ever add multilingual pages in the future, Hugo can automatically rewrite links to them. You don't need the
./(i.e.href="about/"is fine).Incidentally if you are moving a page you should leave a redirect at the old location, in case there are any incoming links. For example, by adding this to the frontmatter of the "join us" page:
Then the old URL https://sslarch.github.io/documents/becoming_a_member/ will redirect to https://sslarch.github.io/join-us/. You should then delete the old source file.
For reference: https://gohugo.io/content-management/urls/
mtomasini commentedon Jun 11, 2026
Hugo is really cool, but damn the documentation is extensive 🫣