refactor(frontend): centralize subdirectory URL prefixing behind nav helpers (#39925)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Evan <evan@preset.io>
This commit is contained in:
Joe Li
2026-07-01 11:20:13 -07:00
committed by GitHub
co-authored by Claude Opus 4.7 Evan
parent b7d5de8e52
commit bed1034c2f
200 changed files with 9884 additions and 657 deletions
@@ -44,7 +44,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 { openInNewTab } from 'src/utils/navigationUtils';
import ResultSet from '../ResultSet';
import HighlightedSql from '../HighlightedSql';
import { StaticPosition, StyledTooltip, ModalResultSetWrapper } from './styles';
@@ -80,8 +80,7 @@ interface QueryTableProps {
}
const openQuery = (id: number) => {
const url = makeUrl(`/sqllab?queryId=${id}`);
window.open(url);
openInNewTab(`/sqllab?queryId=${id}`);
};
const QueryTable = ({