Skip to content

Commit 9c1e00e

Browse files
committed
Feedback.
1 parent 0d2b380 commit 9c1e00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/Web.JS/src/Services/NavigationEnhancement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ export function detachProgressivelyEnhancedNavigationListener() {
7272
}
7373

7474
function performProgrammaticEnhancedNavigation(absoluteInternalHref: string, replace: boolean) : void {
75-
let isSelfNavigation = isForSamePath(absoluteInternalHref, location.href);
75+
const originalLocation = location.href;
7676

7777
if (replace) {
7878
history.replaceState(null, /* ignored title */ '', absoluteInternalHref);
7979
} else {
8080
history.pushState(null, /* ignored title */ '', absoluteInternalHref);
8181
}
8282

83-
if (!isSelfNavigation) {
83+
if (!isForSamePath(absoluteInternalHref, originalLocation)) {
8484
resetScrollAfterNextBatch();
8585
}
8686

0 commit comments

Comments
 (0)