Fix broken meta resource paths on blog subpages #266
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.
Summary
This PR fixes several broken resource paths in the blog Meta component that caused web manifest, favicon, and browser configuration files to resolve incorrectly on blog subpages. The issue resulted in 404s on post, tag, and author pages and affected SEO, PWA support, and favicon loading.
Problem
The blog is served under the /blog base path, but some meta resources in components/
meta.tsxwere defined using relative URLs (e.g.blog/favicon/...). On nested routes, these paths were resolved relative to the current page, leading to incorrect URLs such as:/blog/blog/favicon/.../blog/technology/some-post/blog/favicon/...As a result, the web manifest and browser configuration files returned 404s, and some icon references pointed to non-existent assets.
Fix
This change updates the affected meta resource paths to use absolute URLs under /blog and cleans up invalid references:
browserconfigpaths to/blog/favicon/...screenshot from blog website:
screenshot from local server:
Impact
How to verify