Skip to content

docs(gitbook): prefix redirect keys with the site section slug - #63

Merged
dakejahl merged 1 commit into
mainfrom
docs/redirect-section-prefix
Aug 14, 2026
Merged

docs(gitbook): prefix redirect keys with the site section slug#63
dakejahl merged 1 commit into
mainfrom
docs/redirect-section-prefix

Conversation

@dakejahl

Copy link
Copy Markdown
Collaborator

Summary

Fixes the last 5 of 58 old URLs still returning 404 after #62.

Problem

#62 took 27 working URLs to 53. The 5 remaining failures are all Just A Jetson pages that were merged or replaced rather than renamed: getting-started, apt-upgrade-hold-back-risky-packages, and the three usb-*-adapters pages.

Their keys were repo-relative (embedded-computers/ark-just-a-jetson/...). GitBook matches keys against the full site URL path, which carries the section slug — products/embedded-computers/.... The equivalent PAB keys worked only by coincidence: their old repo directory was products/, which is also the section slug, so the repo path and the URL path happened to be identical.

Solution

Key every entry by its old site URL. Drops the 7 repo-relative Just A Jetson keys, which could never match, and replaces them with section-prefixed ones. Two of those pages already resolve through GitBook's page tracking, so only 5 URLs change behavior. Still 58 entries, no self-redirects, every target verified to exist.

Measured after #62: 53 of 58 old URLs forward. The 5 that still 404 are
exactly the Just A Jetson pages whose key lacked a section prefix.

GitBook matches redirect keys against the full site URL path, not the
space-relative path. The PAB keys only worked by coincidence — their old
repo directory products/ is also the section slug. Key every entry by its
old site URL.
@dakejahl
dakejahl merged commit 17f46d6 into main Aug 14, 2026
2 checks passed
@dakejahl
dakejahl deleted the docs/redirect-section-prefix branch August 14, 2026 22:25
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.

1 participant