Skip to content

Fix 404 "Head back to the homepage" link to always resolve to root#10

Merged
calcode merged 2 commits intomasterfrom
copilot/fix-head-back-homepage-link
Feb 22, 2026
Merged

Fix 404 "Head back to the homepage" link to always resolve to root#10
calcode merged 2 commits intomasterfrom
copilot/fix-head-back-homepage-link

Conversation

Copy link
Contributor

Copilot AI commented Feb 22, 2026

The "Head back to the homepage" link in 404.html used {{ site.baseurl }} which, when empty, renders as href="" — a relative URL that resolves to the current path (e.g. /page/2/) instead of the site root.

Change

  • 404.html: Replace {{ site.baseurl }} with / so the link always resolves to the root domain regardless of where the 404 is served from.
- <a href="{{ site.baseurl }}">Head back to the homepage</a>
+ <a href="/">Head back to the homepage</a>
Original prompt

This section details on the original issue you should resolve

<issue_title>Fix the head back to the homepage link</issue_title>
<issue_description>"Uh oh. Something doesn't seem right here! Head back to the homepage."

Fix the link so this links to the route domain. </issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: calcode <8709992+calcode@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix head back to the homepage link Fix 404 "Head back to the homepage" link to always resolve to root Feb 22, 2026
Copilot AI requested a review from calcode February 22, 2026 20:49
@calcode calcode marked this pull request as ready for review February 22, 2026 21:00
@calcode calcode merged commit 15d7ac9 into master Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the head back to the homepage link

2 participants