Login redirects to incorrect url's #5528

Closed
opened 2026-02-05 10:08:50 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @mpcref on GitHub (Nov 28, 2025).

Describe the Bug

If there's no referrer the browser gets redirected to an incorrect url after a successful login.
Usually it will be redirected to /manifest.json which is the most recent resource that was loaded by the login page.
If DevTools is open the browser will be redirected to /dist/app.js.map which shows the 404 page.

Steps to Reproduce

  1. Enter BookStack's /login url in the browser's address bar, not by clicking the "Login" button
  2. Enter correct login credentials and click the "Log In" button
  3. Browser gets redirected to /manifest.json

Expected Behaviour

The browser should be redirected to the homepage.

Screenshots or Additional Context

No response

Browser Details

any

Exact BookStack Version

v25.11.3

Originally created by @mpcref on GitHub (Nov 28, 2025). ### Describe the Bug If there's no referrer the browser gets redirected to an incorrect url after a successful login. Usually it will be redirected to `/manifest.json` which is the most recent resource that was loaded by the login page. If DevTools is open the browser will be redirected to `/dist/app.js.map` which shows the 404 page. ### Steps to Reproduce 1. Enter BookStack's `/login` url in the browser's address bar, **not** by clicking the "Login" button 2. Enter correct login credentials and click the "Log In" button 3. Browser gets redirected to `/manifest.json` ### Expected Behaviour The browser should be redirected to the homepage. ### Screenshots or Additional Context _No response_ ### Browser Details any ### Exact BookStack Version `v25.11.3`
OVERLORD added the 🐛 Bug label 2026-02-05 10:08:50 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 28, 2025):

Thanks @mpcref for raising.
Have assigned to the next feature release (if not a sooner patch release).

Dev notes

@ssddanbrown commented on GitHub (Nov 28, 2025): Thanks @mpcref for raising. Have assigned to the next feature release (if not a sooner patch release). ### Dev notes - Needs update of this list: https://github.com/BookStackApp/BookStack/blob/a75d5b8bc17f5d1352ae5db7804df10f26ff751b/app/Http/Middleware/StartSessionExtended.php#L16-L18 - Update (or add) testing to cover
Author
Owner

@ssddanbrown commented on GitHub (Dec 3, 2025):

This has now been addressed within 65f7b61c1f, to be part of the next patch release which should be made later today.
Thanks again @mpcref for raising.

@ssddanbrown commented on GitHub (Dec 3, 2025): This has now been addressed within 65f7b61c1f55594607dfa152acec83a035d8aa5c, to be part of the next patch release which should be made later today. Thanks again @mpcref for raising.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5528