Skip to content

fix: preserve query strings in legacy documentation redirects - #364

Merged
bfabio merged 1 commit into
publiccodeyml:mainfrom
thc1006:main
Sep 9, 2026
Merged

fix: preserve query strings in legacy documentation redirects#364
bfabio merged 1 commit into
publiccodeyml:mainfrom
thc1006:main

Conversation

@thc1006

@thc1006 thc1006 commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The legacy redirects append location.hash but omit location.search , so a link such as /search.html?q=maintenance reaches the versioned search page without its search term.

Append the original query before the fragment. The existing relative target, location.replace behavior, canonical link and static fallback remain unchanged. No specification content, parser API, dependencies or version-selection behavior changes.

Fixes #363

The legacy redirects append location.hash but omit location.search, so a link such as /search.html?q=maintenance reaches the versioned search page without its search term.

Append the original query before the fragment. The existing relative target, location.replace behavior, canonical link and static fallback remain unchanged. No specification content, parser API, dependencies or version-selection behavior changes.

Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

@thc1006 is attempting to deploy a commit to the bfabio's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
publiccode-yml Ready Ready Preview Sep 7, 2026 4:18am UTC

@bfabio

bfabio commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Good catch, thanks @thc1006!

@bfabio
bfabio merged commit a763dee into publiccodeyml:main Sep 9, 2026
1 check 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.

Legacy documentation redirects discard search queries

2 participants