mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: add subdirectory deployment support for app icon and reports urls (#35098)
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Daniel Gaspar <danielvazgaspar@gmail.com>
This commit is contained in:
committed by
GitHub
parent
0131e542e9
commit
b35b1d7633
@@ -41,6 +41,7 @@ import {
|
||||
import { fDuration, extendedDayjs } from '@superset-ui/core/utils/dates';
|
||||
import { SqlLabRootState } from 'src/SqlLab/types';
|
||||
import { UserWithPermissionsAndRoles as User } from 'src/types/bootstrapTypes';
|
||||
import { makeUrl } from 'src/utils/pathUtils';
|
||||
import ResultSet from '../ResultSet';
|
||||
import HighlightedSql from '../HighlightedSql';
|
||||
import { StaticPosition, StyledTooltip } from './styles';
|
||||
@@ -68,7 +69,7 @@ interface QueryTableProps {
|
||||
}
|
||||
|
||||
const openQuery = (id: number) => {
|
||||
const url = `/sqllab?queryId=${id}`;
|
||||
const url = makeUrl(`/sqllab?queryId=${id}`);
|
||||
window.open(url);
|
||||
};
|
||||
|
||||
|
||||
@@ -85,8 +85,8 @@ import { Icons } from '@superset-ui/core/components/Icons';
|
||||
import { findPermission } from 'src/utils/findPermission';
|
||||
import { StreamingExportModal } from 'src/components/StreamingExportModal';
|
||||
import { useStreamingExport } from 'src/components/StreamingExportModal/useStreamingExport';
|
||||
import { ensureAppRoot } from 'src/utils/pathUtils';
|
||||
import { useConfirmModal } from 'src/hooks/useConfirmModal';
|
||||
import { makeUrl } from 'src/utils/pathUtils';
|
||||
import ExploreCtasResultsButton from '../ExploreCtasResultsButton';
|
||||
import ExploreResultsButton from '../ExploreResultsButton';
|
||||
import HighlightedSql from '../HighlightedSql';
|
||||
@@ -314,7 +314,7 @@ const ResultSet = ({
|
||||
};
|
||||
|
||||
const getExportCsvUrl = (clientId: string) =>
|
||||
ensureAppRoot(`/api/v1/sqllab/export/${clientId}/`);
|
||||
makeUrl(`/api/v1/sqllab/export/${clientId}/`);
|
||||
|
||||
const handleCloseStreamingModal = () => {
|
||||
cancelExport();
|
||||
|
||||
Reference in New Issue
Block a user