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.
1 parent 0d2b380 commit 9c1e00eCopy full SHA for 9c1e00e
src/Components/Web.JS/src/Services/NavigationEnhancement.ts
@@ -72,15 +72,15 @@ export function detachProgressivelyEnhancedNavigationListener() {
72
}
73
74
function performProgrammaticEnhancedNavigation(absoluteInternalHref: string, replace: boolean) : void {
75
- let isSelfNavigation = isForSamePath(absoluteInternalHref, location.href);
+ const originalLocation = location.href;
76
77
if (replace) {
78
history.replaceState(null, /* ignored title */ '', absoluteInternalHref);
79
} else {
80
history.pushState(null, /* ignored title */ '', absoluteInternalHref);
81
82
83
- if (!isSelfNavigation) {
+ if (!isForSamePath(absoluteInternalHref, originalLocation)) {
84
resetScrollAfterNextBatch();
85
86
0 commit comments