jakubhruby opened a new pull request, #35641:
URL: https://github.com/apache/superset/pull/35641
### SUMMARY
When app root prefix is applied (e.g. `SUPERSET_APP_ROOT="/app-prefix"`),
it's applied twice - e.g. when exporting graph to CSV
```javascript
// in this handler url is build with appRoot prefix
exportChart = async (...) => {
...
url = ensureAppRoot('/api/v1/chart/data');
// now the url is /app-prefix/api/v1/chart/data
// postForm is called with prefixed url
SupersetClient.postForm(url, ...)
...
}
// this method is called with already prefixed url
async postForm(endpoint, ...) {
...
hiddenForm.action = this.getUrl({ endpoint });
// now the url is /app-prefix/app-prefix/api/v1/chart/data
...
}
```
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
<img width="1430" height="867" alt="SnĂmek obrazovky z 2025-10-14 14-53-35"
src="https://github.com/user-attachments/assets/cb224e24-3d58-4bba-9237-cec528c454d9"
/>
### TESTING INSTRUCTIONS
Test downloading CSV file.
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration (follow approval process in
[SIP-59](https://github.com/apache/superset/issues/13351))
- [ ] Migration is atomic, supports rollback & is backwards-compatible
- [ ] Confirm DB migration upgrade and downgrade tested
- [ ] Runtime estimates and downtime expectations provided
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
--
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]