After invalid credentials werther incorrectly redirects.
Opened this issue · 0 comments
indietyp commented
Describe the bug
I have WERTHER_WEB_BASE_PATH
set to /werther/
which works correctly to show the UI.
There are two cases that can happen:
- Successful login: Everything works as expected
- Invalid Credentials: everything seems to work correctly, the user is redirected to the correct page, but this time, if I send the correct credentials the base path is no longer respected, and instead of
POST
-ing to/werther/auth/login
, itPOST
s to/auth/login
To Reproduce
Steps to reproduce the behavior:
- Set
WERTHER_WEB_BASE_PATH
- Navigate to the new URL
- Put in invalid credentials
- Put in valid credentials <- this will redirect wrongly
Expected behavior
The base path is respected even on retries
Desktop (please complete the following information):
- OS: macOS
- Browser: Firefox
- Version: 121.0b6
Additional context
Add any other context about the problem here.