Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Browser "Back" button does not return to the previous page with prefetch on mobile devices #2122

Open
ramonmalcolm10 opened this issue Dec 8, 2024 · 2 comments

Comments

@ramonmalcolm10
Copy link

Versions:

  • inertiajs/inertia-laravel version: 2.x-dev
  • @inertiajs/react version: 2.0.0-beta.3

Describe the problem:

When using Inertia JS v2 on Chrome with an iPhone, I noticed an issue with navigation when using the prefetch feature. After navigating to a new page and clicking the browser "Back" button, it does not return to the previous page as expected. This behavior occurs consistently on this device and browser combination. I haven't tested this without prefetch or on other devices/browsers.

Steps to reproduce:

  1. Set up an Inertia.js v2 project.
  2. Enable the prefetch feature for navigation links.
  3. Open the app on an iPhone using Chrome.
  4. Click on a link with prefetch enabled to navigate to a new page.
  5. Press the browser "Back" button.
  6. Observe the behavior.
@NicolasKion
Copy link

Looks like the fix from the 1.3 beta did not make it into the 2.x beta yet https://github.com/inertiajs/inertia/releases/tag/v1.3.0-beta.1

@ramonmalcolm10
Copy link
Author

Just a bit curious why was v2 marked as stable without bug fixes from version 1.3 @NicolasKion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants