Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set history options if window.history.state is defined
  • Loading branch information
pavelzubov committed Sep 16, 2019
1 parent 0c6c1f9 commit 6635156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/next-server/lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,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)
Expand Down

0 comments on commit 6635156

Please sign in to comment.