Skip to content

Commit b4f121a

Browse files
committed
feat: skip removal of trailing slashes
1 parent 1632cb9 commit b4f121a

File tree

3 files changed

+2
-23
lines changed

3 files changed

+2
-23
lines changed

gatsby-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const plugins = [
1515
'gatsby-transformer-sharp',
1616
'gatsby-plugin-sharp',
1717
'gatsby-plugin-catch-links',
18-
'gatsby-plugin-remove-trailing-slashes',
1918
'gatsby-plugin-resolve-src',
2019
'gatsby-transformer-json',
2120
{
@@ -170,7 +169,8 @@ if (autoCanonicalURL) {
170169
resolve: `gatsby-plugin-react-helmet-canonical-urls`,
171170
options: {
172171
siteUrl: process.env.GATSBY_DEFAULT_MAIN_URL,
173-
noTrailingSlash: true,
172+
noHash: true,
173+
noQueryString: true,
174174
},
175175
});
176176
}

package-lock.json

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"gatsby-plugin-offline": "^3.2.31",
4545
"gatsby-plugin-react-helmet": "^3.3.14",
4646
"gatsby-plugin-react-helmet-canonical-urls": "^1.4.0",
47-
"gatsby-plugin-remove-trailing-slashes": "^2.3.13",
4847
"gatsby-plugin-resolve-src": "^2.0.0",
4948
"gatsby-plugin-s3": "^0.3.5",
5049
"gatsby-plugin-sass": "^3.2.0",

0 commit comments

Comments
 (0)