millette / gatsby-starter-location-github

Other
1 stars 2 forks source link

Problem deploying to path prefix #23

Open millette opened 6 years ago

millette commented 6 years ago

Mostly works except

millette commented 6 years ago

It's worst than that... maybe because of a gatsby upgrade?

Details: https://github.com/gatsbyjs/gatsby/compare/gatsby@2.0.0-beta.71...gatsby@2.0.0-beta.83

The problem (on my end) appeared before beta 71 without me noticing.

See also

millette commented 6 years ago

Cool, now it works if I specify the language:

Otherwise we're redirected from: https://millette.github.io/gatsby-starter-location-github/fr/about/

to: https://millette.github.io/gatsby-starter-location-github/fr/gatsby-starter-location-github/about/

Notice gatsby-starter-location-github is inserted twice (once after the language).

See https://github.com/millette/gatsby-starter-location-github/blob/bcaca3e9cb4c08c25ea253fbcc747c1b3dceba44/src/i18n/redirect.js#L32 maybe.