Skip to content

docs(redirect): deep-link the retire redirects — carry the URL fragment (PRDCT-583) - #415

Open
Iamfle4ka wants to merge 1 commit into
mainfrom
docs/redirect-preserve-hash
Open

docs(redirect): deep-link the retire redirects — carry the URL fragment (PRDCT-583)#415
Iamfle4ka wants to merge 1 commit into
mainfrom
docs/redirect-preserve-hash

Conversation

@Iamfle4ka

Copy link
Copy Markdown
Collaborator

Readers following old dev links with an anchor (…/configuration/api/pagination/#offset) currently land at the top of the help page: the redirect layout calls location.replace() with the bare target, and the meta-refresh fallback can't forward fragments (browsers drop them by spec).

This appends location.hash to the target, unless the stub's redirect_to already pins its own anchor. One shared layout — fixes every already-merged stub (#405/#406) and all upcoming retirements (#412/#413/#414) at once.

No-JS readers keep the current behavior (meta refresh to the page top + the visible 'this page has moved' link) — that's the best the platform allows.

🤖 Generated with Claude Code

A reader following a deep link like
/extend/generic-extractor/configuration/api/pagination/#offset landed at the
top of the help page — location.replace() used the bare target, and the
meta-refresh fallback cannot forward fragments at all (browsers drop them).

Append location.hash to the target unless the stub's redirect_to already
pins its own anchor. Applies to every existing stub (#405/#406) and all
upcoming retirements (#412/#413/#414) — the layout is shared.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Aug 25, 2026

Copy link
Copy Markdown

PRDCT-583

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