Add HTML redirects for legacy How Do I pages#4621
Merged
shai-almog merged 2 commits intomasterfrom Mar 18, 2026
Merged
Conversation
Cloudflare Preview
|
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.
Motivation
/how-do-i/...article locations.Description
docs/website/content/create-an-ios-provisioning-profile.mdwith an HTML redirect that preserves the frontmatter and adds ametarefresh, a canonical link, a JavaScriptwindow.location.replacefallback, and a user-facing anchor fallback pointing to/how-do-i/how-do-i-create-an-ios-provisioning-profile/.docs/website/content/take-a-picture-with-the-camera.mdwith the same HTML redirect pattern pointing to/how-do-i/how-do-i-take-a-picture-with-the-camera/.meta http-equiv="refresh"for automatic forwarding, alink rel="canonical"to the new URL, and a small HTML body that links to the target for clients without automatic redirect support.Testing
pythonscript that checksdocs/website/content/*.mdfortype=howdoi) and confirmed two affected files were found.rg -n "meta http-equiv=\"refresh\"|window.location.replace|This page moved to"and confirmed presence ofmeta refresh, JavaScript redirect, and fallback link in both files.hugo --panicOnWarningbuthugowas not available in the environment, so the generated site could not be validated here.Codex Task