millette / gatsby-starter-location-github

Other
1 stars 2 forks source link

Fix language switcher #20

Open millette opened 6 years ago

millette commented 6 years ago

Turns out, if I'm on /fr/about and navigate to /en/about - nothing happens except the location changes. But not the content, the page isn't rerendered.

3 workarounds:

  1. Plain \<a href=""> (force full browser reload)
  2. Bounce page (special Link to go to mid-Page then to destination)
  3. Keep language in this.state to force render()

Until I get a real fix for it...