diff --git a/src/core/session.js b/src/core/session.js index 1047d4463..d66146fe8 100644 --- a/src/core/session.js +++ b/src/core/session.js @@ -109,7 +109,8 @@ export class Session { refresh(url, requestId) { const isRecentRequest = requestId && this.recentRequests.has(requestId) - if (!isRecentRequest && !this.navigator.currentVisit) { + const isCurrentUrl = url === document.baseURI + if (!isRecentRequest && !this.navigator.currentVisit && isCurrentUrl) { this.visit(url, { action: "replace", shouldCacheSnapshot: false }) } } diff --git a/src/tests/fixtures/page_refresh_stream_action.html b/src/tests/fixtures/page_refresh_stream_action.html index 4fb80d1c8..2d8ae2e97 100644 --- a/src/tests/fixtures/page_refresh_stream_action.html +++ b/src/tests/fixtures/page_refresh_stream_action.html @@ -14,6 +14,7 @@