router.replace with shallow:true persists shallow flag in history state, causing getServerSideProps to be skipped on browser back navigation
When router.replace is called with shallow: true in Next.js Pages Router, the shallow flag is stored in the browser history state. On subsequent browser back navigation to that entry, the router reuses the flag and skips getServerSideProps, rendering stale data.
