Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check versioned requests that 404 for possible redirects #68

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

LawnGnome
Copy link
Contributor

At present, versioned requests do not get parsed for redirects, which causes issues when we have /help links in Sourcegraph that depend on a redirect being in place. As redirects are defined on the asset VFS, we can't trivially check the redirects for that specific version, but as a fallback, we can see if there are any current redirects that might help.

This should be generally harmless, but helps us address old versions of Sourcegraph with redirect links that we now cannot update.

This addresses (but doesn't completely fix) sourcegraph/sourcegraph#17931.

At present, versioned requests do not get parsed for redirects, which
causes issues when we have /help links in Sourcegraph that depend on a
redirect being in place. As redirects are defined on the asset VFS, we
can't trivially check the redirects for that specific version, but as a
fallback, we can see if there are any current redirects that might help.

This addresses (but doesn't actually fix) sourcegraph/sourcegraph#17931.
@sqs sqs removed their request for review February 3, 2021 14:59
@LawnGnome LawnGnome merged commit 179a629 into main Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants