Closed heitorPB closed 3 weeks ago
Hmm, should we add a trailing slash to all URLs then? I see similar behavior on GitLab pages. If this is added anyway, we can avoid one round trip by adding /
to all the links in the top navigation pane by default.
That could lead to double trailing slashes?
I only found this issue on the tags page, did you find it in other places as well?
Huh. Looks like I misunderstood the problem.
Are we talking about this link specifically? See screenshot below and the source URL.
https://pawroman.github.io/zola-theme-terminimal/tags/javascript/
Yes, that link.
Is there a missing /
in other links as well? Not sure I got your point.
For a moment I thought that github/gitlab were doing some URL manipulation when the website got deployed, but then I realized that all the URLs come from the theme.
So your fix makes sense, to make things consistent.
This is to improve Google indexing pages, for the /tags/ page. In GitHub Pages, the URL /tags does not exist per se, but is a redirect to /tags/. Google Crawler gets confused with 301 HTTP status and does not index it.
Purely for SEO purposes.