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

Unable to use browser navigation #134

Open
italonascimento opened this issue Jul 1, 2020 · 1 comment
Open

Unable to use browser navigation #134

italonascimento opened this issue Jul 1, 2020 · 1 comment

Comments

@italonascimento
Copy link

italonascimento commented Jul 1, 2020

Hi everyone.
I'm using the plugin for the first time, and I'm facing an issue regarding the broser navigation.
When using the gatsby-plugin-intl Link or navigate(), I'm unable to use the browser back button. By removing the plugin and using gatsby own navigation methods everything works fine, though.

Anyone else experiencing this? Figured it might have something to do with this gatsby issue:
gatsbyjs/gatsby#8357

Also, I've noticed that as soon as I open the site in localhost, the history is immediatly filled with many entries of the same page I'm in.

The version I'm using is 0.3.3, with gatsby 2.23.10.

Best regards,
Ítalo

@italonascimento
Copy link
Author

After looking at the problem more carefully, I'd say it probably doesn't have anything to do with the gatsby issue I've mentioned before, and is also not related to gatsby-plugin-intl Link nor navigate. It seems to be related with the plugin's route redirection.

Even if I navigate using gatsby own Link, the intl plugin will fill up the browser history with the current page. If I try to use the browser back button nothing happens, and the forward button stays disabled, showing that I'm still in the top of the navigation history pile.

By removing the plugin the problem ceases.

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