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

Navigation Links in Google Chrome iOS Are Replaced Upon Clicking Back, Losing All History #11919

Open
1 task done
alexookah opened this issue Sep 4, 2024 · 1 comment
Open
1 task done
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) feat: view transitions Related to the View Transitions feature (scope)

Comments

@alexookah
Copy link

alexookah commented Sep 4, 2024

Astro Info

Astro                    v4.15.1
Node                     v20.14.0
System                   macOS (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/sitemap
                         @astrojs/tailwind

If this issue only occurs in one browser, which browser is a problem?

iOS Chrome, iOS Edge

Describe the Bug

When navigating in Google Chrome on iOS, all links are being replaced after clicking back, causing the browsing history to disappear. I attempted to resolve the issue by using data-astro-history="push", but it didn't work.

Safari and Opera works fine. Only Chrome and Edge seems to have this issue. Not sure if this is an Astro (Transition) or Google Chrome-Edge issue.

Created also a Discord issue

I started with this theme:
website I am working on.

What's the expected result?

Navigation history is kept and back button goes to previous page

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-rspsrp-qcdu3j?file=src%2Fpages%2Findex.astro

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Sep 4, 2024
@martrapp martrapp added - P3: minor bug An edge case that only affects very specific usage (priority) feat: view transitions Related to the View Transitions feature (scope) and removed needs triage Issue needs to be triaged labels Sep 4, 2024
@martrapp
Copy link
Member

martrapp commented Sep 4, 2024

As already discussed in the linked discord thread, I sadly have no equipment to debug this issue.
Would appreciate if a Mac user could jump in or if someone knows an easy way for debugging iOS Chrome from Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) feat: view transitions Related to the View Transitions feature (scope)
Projects
None yet
Development

No branches or pull requests

3 participants
@alexookah @martrapp and others