Skip to content

Fix broken menu page links - #6

Merged
stefan-burke merged 1 commit into
mainfrom
claude/broken-menu-links-wn2hp3
Jun 29, 2026
Merged

Fix broken menu page links#6
stefan-burke merged 1 commit into
mainfrom
claude/broken-menu-links-wn2hp3

Conversation

@stefan-burke

Copy link
Copy Markdown
Member

What & why

Two links on /menu/ returned 404 (reported by a link checker):

Broken link Linked from Cause
https://www.feedstives.co.uk/menus/ /menu/ breadcrumb pointed at a menus index page that doesn't exist
https://www.feedstives.co.uk/menu/feed-cafe-and-deli-menu.pdf /menu/ PDF download button used a relative href that resolved to the wrong path

Both stem from menus/menu.md overriding its permalink to /menu/, while the template assumes menu pages live at the default /menus/<slug>/.

Changes

  • Add pages/menus.md at /menus/. The template's breadcrumb links menu pages up to their collection index /menus/, but this site never created that page, so the breadcrumb 404'd. The new page is a short index that lists the menu (no nav entry — it's reached via the breadcrumb).

  • Fix the PDF download button in menus/menu.md. The menu-pdf-download block emits a relative href (feed-cafe-and-deli-menu.pdf) that assumes the page sits at /menus/menu/. Because this page is at /menu/, the link resolved to /menu/feed-cafe-and-deli-menu.pdf (404). The PDF is actually generated and served at /menus/menu/feed-cafe-and-deli-menu.pdf (verified returns 200 application/pdf), so the block is replaced with a link-button pointing at that absolute path.

Notes

  • The /menu/ URL and all existing internal links to it are unchanged.
  • No template changes — both fixes are content-only.

🤖 Generated with Claude Code


Generated by Claude Code

Two links on /menu/ returned 404:

- The breadcrumb linked up to /menus/ (the menus collection index the
  template expects), but that page was never created. Add pages/menus.md
  at /menus/ listing the menu so the breadcrumb resolves.

- The "Download The Menu PDF" button used the menu-pdf-download block,
  which emits a relative href assuming the page lives at /menus/menu/.
  Because this page overrides its permalink to /menu/, the link resolved
  to /menu/feed-cafe-and-deli-menu.pdf (404). The PDF is generated at
  /menus/menu/feed-cafe-and-deli-menu.pdf, so use a link-button with that
  absolute path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HrgAeaLAgXkVeDwzJWPNLi
@stefan-burke
stefan-burke merged commit 498fb54 into main Jun 29, 2026
2 checks passed
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.

2 participants