Skip to content

Fix 7 broken Day 1-7 links on First 7 Days index page#101

Open
melvincarvalho wants to merge 1 commit into
gh-pagesfrom
issue-83-fix-first-7-days-links
Open

Fix 7 broken Day 1-7 links on First 7 Days index page#101
melvincarvalho wants to merge 1 commit into
gh-pagesfrom
issue-83-fix-first-7-days-links

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Fixes #83

Bare links like (day-1-make-it-yours) on the First 7 Days index resolved against the page URL /guides/first-7-days, producing nonexistent /guides/day-X URLs — all 7 day links on the live page 404.

Changed the table links to file-relative .md form (./day-1-make-it-yours.md) so the docs plugin resolves them against the filesystem regardless of slug.

Verification:

  • npm run build no longer prints the broken-links warning block
  • Generated HTML hrefs confirmed: all seven point to /guides/first-7-days/day-X

Note: a ./day-X prefix without the .md extension was tried first and still resolves against the URL path — the .md extension is what makes it filesystem-resolved.

Bare links like (day-1-make-it-yours) resolved against the page URL
/guides/first-7-days, producing nonexistent /guides/day-X URLs. Link
to the .md files instead so the docs plugin resolves them against the
filesystem. Verified: build no longer reports broken links and the
generated hrefs point to /guides/first-7-days/day-X.

Fixes #83
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 7 broken Day 1-7 links on First 7 Days index page

1 participant