diff --git a/packages/next/next-server/lib/router/router.ts b/packages/next/next-server/lib/router/router.ts index 7735dd9de2f42..cbaad1c042faf 100644 --- a/packages/next/next-server/lib/router/router.ts +++ b/packages/next/next-server/lib/router/router.ts @@ -133,7 +133,8 @@ export default class Router implements BaseRouter { this.changeState( 'replaceState', formatWithValidation({ pathname, query }), - as + as, + window.history.state && window.history.state.options ) window.addEventListener('popstate', this.onPopState)