dosubot[bot] commented on issue #35712: URL: https://github.com/apache/superset/issues/35712#issuecomment-3433363001
<!-- Answer --> The key difference is where the redirect happens: chart creation uses client-side React routing, while dashboard creation relies on a backend Flask redirect. For charts, the frontend React code constructs the URL and navigates using `history.push()` (see [ChartCreation component](https://github.com/apache/superset/blob/master/superset-frontend/src/pages/ChartCreation/index.tsx)), so the browser keeps the correct protocol, host, and port. For dashboards, the backend Flask view creates the dashboard and then redirects using `redirect(url_for(...))` ([dashboard view code](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/views/dashboard/views.py)). This redirect depends on Flask/Werkzeug parsing proxy headers to reconstruct the full URL, including protocol and port. If proxy headers are missing or misconfigured, the redirect can lose the port or protocol, which is why dashboard creation is more sensitive to proxy/subpath issues. In short: chart creation is handled entirely in the frontend and is robust to proxy setups, while dashboard creation is handled in the backend and can be affected by proxy header issues. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/85179dc9-43d6-4a3a-a548-5ddd8c592cdf?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/85179dc9-43d6-4a3a-a548-5ddd8c592cdf?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/85179dc9-43d6-4a3a-a548-5ddd8c592cdf?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/85179dc9-43d6-4a3a-a548-5ddd8c592cdf?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/85179dc9-43d6-4a3a-a548-5ddd8c592cdf?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/85179dc9-43d6-4a3a-a548-5ddd8c592cdf?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/85179dc9-43d6-4a3a-a548-5ddd8c592cdf?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35712) -- 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]
