Skip to content

"next" link incorrect when app_root is set #39485

@arashdalir

Description

@arashdalir

Bug description

  1. set APPLICATION_ROOT to /mypath
  2. run superset.
  3. login page pops up with the correct path, BUT the next value is incorrectly set: /mypath/login/?next=%2Fsuperset%2Fwelcome%2F. it should include /mypath inside it.
  4. login and you land on nowhere.

Screenshots/recordings

No response

Superset version

6.0.0

Python version

3.11

Node version

I don't know

Browser

Chrome

Additional context

note:
because of our special/ specific needs, our main application looks like this.

from superset.app import create_app
import sys

root_path = sys.argv[1] if len(sys.argv) > 1 else None
app = create_app(superset_app_root=root_path)

# our use-case-specific code

if __name__ == "__main__":
    serve(app, host='0.0.0.0', port='8200', threads=16,)

and the script is executed in the venv using python app.py /mypath

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions