Skip to content

Login redirects to incorrect url's #5925

@mpcref

Description

@mpcref

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions