We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11517b2 commit cbe70e9Copy full SHA for cbe70e9
packages/next/README.md
@@ -777,7 +777,7 @@ import Router from 'next/router'
777
778
Router.beforePopState(({ url, as, options }) => {
779
// I only want to allow these two routes!
780
- if (as !== '/' || as !== '/other') {
+ if (as !== '/' && as !== '/other') {
781
// Have SSR render bad routes as a 404.
782
window.location.href = as
783
return false
0 commit comments