gatsby-plugin-react-i18next icon indicating copy to clipboard operation
gatsby-plugin-react-i18next copied to clipboard

Respect Gatsby's `trailingSlash` option

Open bicstone opened this issue 4 years ago • 1 comments

trailingSlash option has been added by gatsby.

https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/#trailingslash https://github.com/gatsbyjs/gatsby/discussions/34205

The current behavior is always add trailing slashes to each URL regardless of the trailingSlash option.

https://github.com/microapps/gatsby-plugin-react-i18next/blob/10d2a08861248daeec6c6589d7d89c16a506fdab/src/Helmet.tsx#L7-L10

Is it possible to be able to respect Gatsby's trailingSlash option and control the handling of trailing slashes?

bicstone avatar Apr 08 '22 01:04 bicstone

https://github.com/microapps/gatsby-plugin-react-i18next/pull/136

You'll have to add trailingSlash yourself to this plugin's options to match what you set it to in the gatsby config, but it will work.

sklawren avatar Jun 15 '22 02:06 sklawren

@sklawren Thanks!

bicstone avatar Sep 22 '22 11:09 bicstone