docs(gitbook): prefix redirect keys with the site section slug - #63
Merged
Conversation
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.
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.
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 threeusb-*-adapterspages.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 wasproducts/, 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.