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] Hash duplication on page refresh when using http instead of https #2124

Open
ramonmalcolm10 opened this issue Dec 8, 2024 · 0 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 with URLs served over http (e.g., during local development), refreshing the page causes the hash in the URL to duplicate. For example, navigating to http://localhost:8000/#pricing and refreshing the page results in the URL changing to http://localhost:8000/#pricing#pricing.

This issue does not seem to occur when using https.

Steps to reproduce:

  1. Set up an Inertia.js project.
  2. Serve the application over http (e.g., http://localhost:8000).
  3. Navigate to a URL containing a hash, such as http://localhost:8000/#pricing.
  4. Refresh the page.
  5. Observe the URL.
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

1 participant