Fix article title links producing relative URLs (404 on nested paths)#29
Merged
JJLovesLife merged 2 commits intolivefrom Mar 23, 2026
Merged
Fix article title links producing relative URLs (404 on nested paths)#29JJLovesLife merged 2 commits intolivefrom
JJLovesLife merged 2 commits intolivefrom
Conversation
Co-authored-by: jjshao-ms <87108022+jjshao-ms@users.noreply.github.com> Agent-Logs-Url: https://github.com/JJLovesLife/blog/sessions/f26467f6-a4d4-4d65-a26e-361b74e3c840
Copilot
AI
changed the title
[WIP] Fix title link in article page causing 404 error
Fix article title links producing relative URLs (404 on nested paths)
Mar 23, 2026
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://mango-mushroom-0f508f700-29.eastasia.3.azurestaticapps.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Article hrefs like
mesa/opengl-framebufferresolve relative to the current path, so navigating the title link at/mesa/opengl-framebuffertargets/mesa/mesa/opengl-framebuffer.Prepend
/todestUrlPathat construction so all downstream href interpolations produce absolute URLs:This fixes the
<h2>title link in both article and index pages, and the "Read more…" link.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
necolas.github.io/home/REDACTED/work/blog/blog/build/bin/Debug/net10.0/build /home/REDACTED/work/blog/blog/build/bin/Debug/net10.0/build --force(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.