i-core/werther

After invalid credentials werther incorrectly redirects.

Opened this issue · 0 comments

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, it POSTs to /auth/login

To Reproduce
Steps to reproduce the behavior:

  1. Set WERTHER_WEB_BASE_PATH
  2. Navigate to the new URL
  3. Put in invalid credentials
  4. 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.