We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
go back
1 parent 5d174f2 commit b9fb0d4Copy full SHA for b9fb0d4
x-pack/plugins/code/public/monaco/editor_service.ts
@@ -55,8 +55,8 @@ export class EditorService extends StandaloneCodeEditorServiceImpl {
55
if (input.options && input.options.selection) {
56
const { startColumn, startLineNumber } = input.options.selection;
57
const url = uri + `!L${startLineNumber}:${startColumn}`;
58
- const lastPath = history.location.pathname;
59
- if (lastPath === url) {
+ const currentPath = window.location.hash.substring(1);
+ if (currentPath === url) {
60
this.helper!.revealPosition(startLineNumber, startColumn);
61
} else {
62
history.push(url);
0 commit comments