dosubot[bot] commented on issue #37896: URL: https://github.com/apache/superset/issues/37896#issuecomment-3885402743
<!-- Answer --> This is a known bug in Superset 6.0.0: export URLs for CSV/JSON/Excel are incorrectly generated with duplicated host or app root segments, causing 404 errors. The root cause is redundant prefixing in the frontend export logic—both the URL builder and a helper function add the prefix, resulting in malformed URLs. This was especially common if you set `SUPERSET_APP_ROOT` or `URL_PREFIX`, but could also happen in local setups with duplicated hostnames. The bug is fixed in versions released after October 27, 2025. Upgrading to a newer Superset version is the recommended solution, as the fix ensures the prefix is applied only once and includes comprehensive tests for all deployment scenarios ([PR #36771](https://github.com/apache/superset/pull/36771), [issue #35883](https://github.com/apache/superset/issues/35883)). If you can't upgrade, you can patch your frontend code: review the export URL generation utilities (especially those using `ensureAppRoot`) and remove any redundant prefixing so the prefix is only applied once per URL. For code examples, see the changes in [PR #36771](https://github.com/apache/superset/pull/36771) and [PR #35118](https://github.com/apache/superset/pull/35118). No backend changes are needed; the issue is isolated to frontend URL generation. After patching or upgrading, test exports in all formats to confirm the fix. <!-- 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/18ee2926-329c-4f50-8156-1d8d042ac2ca?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/18ee2926-329c-4f50-8156-1d8d042ac2ca?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/18ee2926-329c-4f50-8156-1d8d042ac2ca?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/18ee2926-329c-4f50-8156-1d8d042ac2ca?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/18ee2926-329c-4f50-8156-1d8d042ac2ca?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/18ee2926-329c-4f50-8156-1d8d042ac2ca?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/18ee2926-329c-4f50-8156-1d8d042ac2ca?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=This%20is%20a%20known%20bug%20in%20Superset%206.0.0%3A%20export%20URLs%20for%20CSV/JSON/Excel%20are%20incorrectly%20generated%20with%20duplicated%20host%20or%20app%20root%20segments%2C%20causing%20404%20errors.%20The%20root%20cause%20is%20redundant%20prefixing%20in%20the%20frontend%20export%20logic%E2%80%94both%20the%20URL%20builder%20and%20a%20helper%20function%20add%20the%20prefix%2C%20resulting%20in%20malformed%20URLs.%20This%20was%20especially%20common%20if%20you%20set%20%60SUPERSET_APP_ROOT%60%20or%20%60URL_PREFIX%60%2C%20but%20could%20also%20happen%20in%20local%20setups%20with%20duplicated%20hostnames.%0A%0AThe%20bug%20is%20fixed%20in%20versions%20released%20after%20October%2027%2C%202025.%20Upgrading%20to%20a%20newer%20Superset%20version%20i s%20the%20recommended%20solution%2C%20as%20the%20fix%20ensures%20the%20prefix%20is%20applied%20only%20once%20and%20includes%20comprehensive%20tests%20for%20all%20deployment%20scenarios%C2%A0%28%5BPR%20%2336771%5D%28https%3A//github.com/apache/superset/pull/36771%29%2C%20%5Bissue%20%2335883%5D%28https%3A//github.com/apache/superset/issues/35883%29%29.%0A%0AIf%20you%20can%27t%20upgrade%2C%20you%20can%20patch%20your%20frontend%20code%3A%20review%20the%20export%20URL%20generation%20utilities%20%28especially%20those%20using%20%60ensureAppRoot%60%29%20and%20remove%20any%20redundant%20prefixing%20so%20the%20prefix%20is%20only%20applied%20once%20per%20URL.%20For%20code%20examples%2C%20see%20the%20changes%20in%20%5BPR%20%2336771%5D%28https%3A//github.com/apache/superset/pull/36771%29%20and%20%5BPR%20%2335118%5D%28https%3A//github.com/apache/superset/pull/35118%29.%0A%0ANo%20backend%20changes%20are%20needed%3B%20the%20issue%20is%20isolated%20to%20frontend%20URL%20generation.%20After%20patchin g%20or%20upgrading%2C%20test%20exports%20in%20all%20formats%20to%20confirm%20the%20fix.) [](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/37896) -- 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]
