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

Fix URL prefix re-inserted when redirecting settings page #4650

Merged

Conversation

WithoutPants
Copy link
Collaborator

Fixes issue reported on Discord where, when using a reverse proxy with a site prefix, that prefix would be re-inserted when redirecting from /settings to the default tab.

This appears to have been introduced in #4378 where the Settings component was separated into SettingTabs and Settings. Using the global location variable within a component that isn't a page route appears to have broken the URL resolution in the Redirect component. Using useLocation instead appears to fix the issue. I moved the redirect logic into Settings as well, since it seemed a more appropriate place for it.

@WithoutPants WithoutPants added the bug Something isn't working label Mar 5, 2024
@WithoutPants WithoutPants added this to the Version 0.25.0 milestone Mar 5, 2024
@WithoutPants WithoutPants merged commit 409a200 into stashapp:develop Mar 5, 2024
2 checks passed
halkeye pushed a commit to halkeye/stash that referenced this pull request Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant