You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open index route under basepath in browser, text on page shows value of prop being passed "Page #"
Use text to click through to second page, works as expected "Page #"
Click link on second page to go back to index, page loads but passed prop does not show in text (no "Page #" text) nor console output
Current vs. Expected behavior
ExpectgetServerSideProps to trigger when navigating back to Index page from within the app, and props passed into the page Current Props are not being passed
Which area(s) are affected? (Select all that apply)
Pages Router
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
App uses middleware.ts file and basePath in next.config, when navigating from a page back to index route the request for pageProps (index.json) in the browser returns a 308 status (expected a 200), and the props from getServerSideProps are lost on page load.
The text was updated successfully, but these errors were encountered:
Link to the code that reproduces this issue
https://github.com/gavb17/next-index-bug
To Reproduce
npm run dev
basepath
in browser, text on page shows value of prop being passed "Page #"index
, page loads but passed prop does not show in text (no "Page #" text) nor console outputCurrent vs. Expected behavior
Expect
getServerSideProps
to trigger when navigating back to Index page from within the app, and props passed into the pageCurrent Props are not being passed
Provide environment information
Which area(s) are affected? (Select all that apply)
Pages Router
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
App uses
middleware.ts
file andbasePath
innext.config
, when navigating from a page back to index route the request for pageProps (index.json) in the browser returns a 308 status (expected a 200), and the props from getServerSideProps are lost on page load.The text was updated successfully, but these errors were encountered: