You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "arashdalir (via GitHub)" <gi...@apache.org> on 2026/04/20 10:44:02 UTC

[I] "next" link incorrect when `app_root` is set [superset]

arashdalir opened a new issue, #39485:
URL: https://github.com/apache/superset/issues/39485

   ### 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.
   
   ```python
   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
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [x] 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4406957479

   If I'm understanding you correctly, you can't check if this has already been fixed in the release candidate and don't have time to report more bugs separately. Is that the case? If so, I will leave this issue tagged as validation needed. And either someone else can check the behavior in the latest version, or we can eventually close it if it gets stale.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4373542532

   @arashdalir I'm looking at Dosu bot's feedback - can you try out Superset 6.1.0rc3, the latest release candidate for Superset's next version, and confirm whether this is fixed there?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "arashdalir (via GitHub)" <gi...@apache.org>.
arashdalir commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4406882615

   unfortunately i don't have the capacity to report the bugs. i tried to check if this one has already been reported or not, but was unsuccessful as you can see :( 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4898985322

   Closinc since it was already confirmed on 2026-05-29 that the next link problem (and most APPLICATION_ROOT issues) is resolved in 6.1 (fix landed in PR #37942). The newly mentioned double-prefixed logout link is a different bug that should be filed separately.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "arashdalir (via GitHub)" <gi...@apache.org>.
arashdalir commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4901654153

   @rusackas fyi: we got to test the OAUTH connection yesterday. interestingly enough, that link still has some issues (#34552). we patched it for the moment so our system would work, but apparently the general work on link issues is far from over...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #39485: "next" link incorrect when `app_root` is set
URL: https://github.com/apache/superset/issues/39485


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4280022152

   <!-- Greeting -->
   Hi @arashdalir! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
   
   <!-- Answer -->
   @arashdalir this is a known bug in the `redirect_to_login` function — it uses `request.path` / `request.full_path` directly without prepending `request.script_root`, so the `next` parameter ends up missing the app root prefix [[1]](https://github.com/apache/superset/pull/37942).
   
   This was fixed in [PR #37942](https://github.com/apache/superset/pull/37942) (merged February 18, 2026), which changes the redirect target construction to:
   
   ```python
   target = request.script_root + request.full_path.rstrip("?")
   # instead of just
   target = request.full_path.rstrip("?")
   ```
   
   This is one of several post-6.0.0 fixes for `SUPERSET_APP_ROOT` handling — the same class of bug affected user info navigation, dashboard export URLs, and static assets [[2]](https://github.com/apache/superset/issues/37518). The feature is still marked as **BETA** with some remaining edge cases around OAuth/LDAP login and Swagger UI [[3]](https://github.com/apache/superset/issues/35027#issuecomment-3257438936).
   
   **To resolve this**, you'll need to either:
   
   1. Upgrade to a Superset version that includes PR #37942, or
   2. Cherry-pick / backport the fix to `superset/views/utils.py` in your deployment
   
   Also, make sure your configuration includes `STATIC_ASSETS_PREFIX` and proxy fix settings if you're behind a reverse proxy [[4]](https://github.com/apache/superset/discussions/37376):
   
   ```python
   SUPERSET_APP_ROOT = "/mypath"
   STATIC_ASSETS_PREFIX = "/mypath"
   ENABLE_PROXY_FIX = True
   ```
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
   
   ---
   
   Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
   
   [![Leave Feedback](https://img.shields.io/badge/Leave%20Feedback-555555?style=flat)](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset#message_id=11798e2d-7bbe-40cb-ba0f-42443bbb9e6f) [![Ask Dosu about superset](https://img.shields.io/badge/Ask%20Dosu%20about%20superset-2f7b3f?style=flat&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iODYiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCA4NiA4OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNS4yOTIzNiAxMi43OTI4TDE3Ljc1OTMgNi42ODE4OFY3Mi41NjY3TDUuMjkyMzYgODQuMDYxOFYxMi43OTI4WiIgZmlsbD0iI0I0QkI5MSIvPjxwYXRoIGQ9Ik0xOC4yNTc1IDczLjExOTZMNTkuMTMyOSA3Mi43NDhMNTEuNzAxMSA4Mi40MDk1TDI5LjAzMzggODYuMjkxTDYuMjM5NjIgODUuMTU1NEwxOC4yNTc1IDczLjExOTZaIiBmaWxsPSIjNzc4NTYxIi8%2BPHBhdGggZD0iTTE3LjQ5MTYgMy43MzYzM0wzLjU4NTU3IDEyLjcwOTlWODMuNTc5MkMzLjU4NTU3IDg0Ljc1NDIgNC45ODU2MyA4NS4zNjUyIDUuODQ3M
 DUgODQuNTY2TDE5LjYyOTYgNzEuNzgwMSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI2LjQyODQ0IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48bWFzayBpZD0iZG9zdS1kLWN1dG91dCIgZmlsbD0id2hpdGUiPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDAuNzA0IDAuNTE4MDY2SDE3LjA0MzlWNzYuMjIyMUg0MC43MDRINDIuNTgwNUg0Ny44MDEzQzY4LjcwNjQgNzYuMjIyMSA4NS42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xOTQgOTIuNzUwNSA2My4xOTQ5IDkyLjc1MDUgMzguMzcwMUg3OC41NTZaTTQ3LjgwMTMgNy42MTUzMkM2NC43ODY2IDcuNjE1MzIgNzguNTU2IDIxLjM4NDcgNzguNTU2IDM4LjM3MDFIOTIuNzUwNUM5Mi43NTA1IDEzLjU0NTMgNzIuNjI2IC02LjU3OTE5IDQ3LjgwMTMgLTYuNTc5MTlWNy42MTUzMlpNNDIuNTgwNSA3LjYxNTMySDQ3LjgwMTNWLTYuNTc5MTlINDIuNTgwNVY3LjYxNTMyWk00MC43MDQgNy42MTUzMkg0Mi41ODA1Vi02LjU3OTE5SDQwLjcwNFY3LjYxNTMyWiIgZmlsbD0iYmxhY2siIG1hc2s9InVybCgjZG9zdS1kLWN1dG91dCkiLz48cGF0aCBkPSJNNjguOTIxNSAzNi4wMTM1QzY4LjkyMTUgMzYuMDEzNSA2NS43MzY5IDQ5LjQ3MzggNTEuNDIzMSA0OS40NzM4QzM3LjEwOTMgNDkuNDczOCAzMi41Nzg3IDM3LjM1OTYgMzIuNTc4NyAzNi4wMTM1IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjcuNjkxN
 jEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0wLjM0ODYzMyA4NS40OTQ2QzAuMzQ4NjMzIDg1LjQ5NDYgMjkuNDg1NiA4NS44MzA5IDM0LjgwOSA4NS42OThDNDQuODMzNyA4NS40NDc3IDUxLjI4NzIgODQuNDAyIDU3LjUyNjkgNzguOTcyNEM2Mi44MTI5IDc0LjM3MjcgNzUuMTM0MiA1OS42ODM2IDc1LjEzNDIgNTkuNjgzNiIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI2LjE2NDgyIi8%2BPC9zdmc%2B)](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [![Share Dosu with your team](https://img.shields.io/badge/Share%20Dosu%20with%20your%20team-1f6feb?style=flat)](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "arashdalir (via GitHub)" <gi...@apache.org>.
arashdalir commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4406969785

   we are working on validating the fix. i'll get back to you on that. but on the issue of reporting the other problems we found, i won't be able to assist much. sorry :(


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "arashdalir (via GitHub)" <gi...@apache.org>.
arashdalir commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4373568960

   Hi! Gladly :)
   I have to say that we found a few other issues too and therefore stopped
   integrating v6.0 in our product :(
   If you want, i can let you know about the other issues too..
   
   Thanks and Best regards,
   
   On Mon, 4 May 2026, 20:40 Sam Firke, ***@***.***> wrote:
   
   > *sfirke* left a comment (apache/superset#39485)
   > <https://github.com/apache/superset/issues/39485#issuecomment-4373542532>
   >
   > @arashdalir <https://github.com/arashdalir> I'm looking at Dosu bot's
   > feedback - can you try out Superset 6.1.0rc3, the latest release candidate
   > for Superset's next version, and confirm whether this is fixed there?
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/superset/issues/39485#issuecomment-4373542532>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AAWDCKRHK6ERHVHH3WAC6ZT4ZDP2HAVCNFSM6AAAAACX7NNVZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNZTGU2DENJTGI>
   > .
   > Triage notifications on the go with GitHub Mobile for iOS
   > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
   > or Android
   > <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
   >
   > You are receiving this because you were mentioned.Message ID:
   > ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4374091578

   Sure, if you have additional bugs to report, that would be useful. You can file them separately. Just be sure to please check first if they have already been reported as GitHub issues.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] "next" link incorrect when `app_root` is set [superset]

Posted by "arashdalir (via GitHub)" <gi...@apache.org>.
arashdalir commented on issue #39485:
URL: https://github.com/apache/superset/issues/39485#issuecomment-4575244357

   hi! a bit late, but still: most of the issues with the `APPLICATION_PATH` have been resolved; including the problem with `next` link.
   BUT, now `logout` link doesn't work now! the link contains 2x `APPLCATION_PATH`.  i know, it's not correct to mention it here -> needs a separate issue; but still, worth mentioning...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org