mirror of
https://github.com/apache/superset.git
synced 2026-08-12 11:11:01 +00:00
feat: Allow superset to be deployed under a prefixed URL (#30134)
Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
co-authored by
Kamil Gabryjelski
parent
31ac3898ad
commit
09b92e7d08
@@ -19,6 +19,7 @@
|
||||
import parseCookie from 'src/utils/parseCookie';
|
||||
import rison from 'rison';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { ensureAppRoot } from './pathUtils';
|
||||
|
||||
export default function handleResourceExport(
|
||||
resource: string,
|
||||
@@ -27,9 +28,9 @@ export default function handleResourceExport(
|
||||
interval = 200,
|
||||
): void {
|
||||
const token = nanoid();
|
||||
const url = `/api/v1/${resource}/export/?q=${rison.encode(
|
||||
ids,
|
||||
)}&token=${token}`;
|
||||
const url = ensureAppRoot(
|
||||
`/api/v1/${resource}/export/?q=${rison.encode(ids)}&token=${token}`,
|
||||
);
|
||||
|
||||
// create new iframe for export
|
||||
const iframe = document.createElement('iframe');
|
||||
|
||||
Reference in New Issue
Block a user