dosubot[bot] commented on issue #40576: URL: https://github.com/apache/superset/issues/40576#issuecomment-4591215423
<!-- Answer --> This is a confirmed bug caused by [PR #37537](https://github.com/apache/superset/pull/37537), which wrapped the backend-provided `user_logout_url` with `ensureAppRoot()` in `RightMenu.tsx`. Since the backend's `appbuilder.get_url_for_logout` already includes the app root in the URL, the frontend wrapping adds it a second time — resulting in `/superset/superset/logout/` [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/views/base.py#L288). [PR #38033](https://github.com/apache/superset/pull/38033) fixes this by removing the redundant `ensureAppRoot()` call [[2]](https://github.com/apache/superset/pull/38033). It has been tested by multiple users and is awaiting merge. **Workaround** — in `superset-frontend/src/features/home/RightMenu.tsx`, change: ```diff - <Typography.Link href={ensureAppRoot(navbarRight.user_logout_url)}> + <Typography.Link href={navbarRight.user_logout_url}> ``` This is part of a broader pattern where several URLs (logout, SQL Lab, logo) get double-prefixed because both the backend middleware and frontend utility functions independently prepend `app_root` [[3]](https://github.com/apache/superset/discussions/40082#discussioncomment-16977152). <!-- 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).* --- Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=9d5290e6-5fe9-4fb9-af74-3186d369e07c) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](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=knowledge-infrastructure-add-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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
