diff --git a/src/core/drive/page_view.js b/src/core/drive/page_view.js index 19d8a244b..6e61c36c3 100644 --- a/src/core/drive/page_view.js +++ b/src/core/drive/page_view.js @@ -56,7 +56,7 @@ export class PageView extends View { } isPageRefresh(visit) { - return !visit || (this.lastRenderedLocation.href === visit.location.href && visit.action === "replace") + return !visit || (this.lastRenderedLocation.pathname === visit.location.pathname && visit.action === "replace") } get snapshot() { diff --git a/src/tests/fixtures/page_refresh.html b/src/tests/fixtures/page_refresh.html index 59463ae90..0020ed480 100644 --- a/src/tests/fixtures/page_refresh.html +++ b/src/tests/fixtures/page_refresh.html @@ -44,6 +44,7 @@