Skip to content

browser back issue of experimental redirects from getServerSideProps / getStaticProps #17738

@TasukuUno

Description

@TasukuUno

Bug report

Describe the bug

image

To Reproduce

Here's simple repo to reproduce
https://github.com/TasukuUno/repro-nextjs-17738

  1. Prepare a page using unstable_redirect option in GSSP or GSP (the page marked /c in the image above)
  2. Navigate to the page from another with client navigation
  3. Click go back of browser
  4. You will go to the page before of the expected one.

Expected behavior

image

Screenshots

image

image

System information

  • OS: macOS
  • Browser: Chrome
  • Version of Next.js: 9.5.4
  • Version of Node.js: 14.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions