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:
Elizabeth Thompson
2025-12-08 16:06:08 -08:00
committed by GitHub
parent 0131e542e9
commit b35b1d7633
13 changed files with 333 additions and 21 deletions

View File

@@ -39,6 +39,7 @@ import {
import { CopyToClipboard } from 'src/components';
import { RootState } from 'src/dashboard/types';
import { findPermission } from 'src/utils/findPermission';
import { makeUrl } from 'src/utils/pathUtils';
import CodeSyntaxHighlighter, {
SupportedLanguage,
preloadLanguages,
@@ -137,7 +138,9 @@ const ViewQuery: FC<ViewQueryProps> = props => {
if (domEvent.metaKey || domEvent.ctrlKey) {
domEvent.preventDefault();
window.open(
`/sqllab?datasourceKey=${datasource}&sql=${encodeURIComponent(currentSQL)}`,
makeUrl(
`/sqllab?datasourceKey=${datasource}&sql=${encodeURIComponent(currentSQL)}`,
),
'_blank',
);
} else {