Skip to content

Commit

Permalink
Fix go away link with charts endpoint override (#1880)
Browse files Browse the repository at this point in the history
  • Loading branch information
goshander authored Dec 4, 2024
1 parent e4a7edb commit a9cf3fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ class ChartsDataProvider implements DataProvider<ChartsProps, ChartsData, Cancel
},
{extraParams = {}, urlPostfix = '', idPrefix = ''},
) {
let url = this.endpoint + urlPostfix;
let url = urlPostfix;

let id = propsData.id;
if (!id && loadedData && 'entryId' in loadedData) {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/units/editor/libs/monaco/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class MonacoUtils {
try {
// fix module resolve without navigation service
const {entryId} = await getSdk().us.getEntryByKey({key: matchRequire.key});
window.open(`${DL.ENDPOINTS.charts}/editor/${entryId}`, '_blank');
window.open(`/editor/${entryId}`, '_blank');
} catch (error) {
window.open(`${DL.ENDPOINTS.charts}/editor/${matchRequire.key}`, '_blank');
}
Expand Down

0 comments on commit a9cf3fe

Please sign in to comment.