mirror of
https://github.com/apache/superset.git
synced 2026-09-07 15:54:55 +00:00
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:
co-authored by
Claude Opus 4.7
Evan
parent
b7d5de8e52
commit
bed1034c2f
@@ -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 = ({
|
||||
|
||||
Reference in New Issue
Block a user