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 navigating to the wrong url after joining through plex #181

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

bghtrbb
Copy link
Contributor

@bghtrbb bghtrbb commented Jul 13, 2023

Fix going to the wrong URL after join. If you have Wizarr hosted at wizarr.example.com then after the plex signup the site will navigate to wizarr.example.com/wizarr.example.com/setup instead of wizarr.example.com/setup as it should if the APP_URL does not start with "http://"

Fix going to the wrong URL after join. If you have Wizarr hosted at wizarr.example.com then after the plex signup the site will navigate to wizarr.example.com/wizarr.example.com/setup instead of wizarr.example.com/setup as it should.
@bghtrbb bghtrbb changed the title Update web.py Fix navigating to the wrong url after joining through plex Jul 13, 2023
@bghtrbb
Copy link
Contributor Author

bghtrbb commented Jul 13, 2023

In Flask, the best practice is to use the url_for() function to perform redirections within the app because it's more reliable and flexible. It will generate the correct URLs even if the routes in the application changes.

@mtthidoteu mtthidoteu merged commit 5d7bd88 into wizarrrr:master Jul 20, 2023
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.

2 participants