KEMBAR78
Shallow routing value is incorrect when navigating back · Issue #14928 · vercel/next.js · GitHub
Skip to content

Shallow routing value is incorrect when navigating back #14928

@mg-code

Description

@mg-code

Bug report

Shallow routing is working incorrectly when user navigates backward.

Describe the bug

Correctly would be to remember shallow value between current step and previous step.

To Reproduce

  1. User enters site
  2. Navigates to a product page (using normal routing) -> user sees information about product
  3. Changes information tab, url is updated (using shallow routing) -> user sees information from new tab
  4. Navigates to a product (using normal routing) -> new product information is shown, everything is okay.
  5. Navigates back -> Next.JS performs shallow routing, user still sees information from product from step 4 (wrong)

Expected behavior

  1. User enters site
  2. Navigates to a product page (using normal routing) -> user sees information about product
  3. Changes information tab, url is updated (using shallow routing) -> user sees information from new tab
  4. Navigates to a product (using normal routing) -> new product information is shown, everything is okay.
  5. Navigates back -> Next.JS remembers how was performed routing from step 3 to step 4 and performs normal routing, information about product is reloaded and shown to user.

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