Skip to content

patrickdemers6/gatsby-slash-redirect-path-prefix-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimial Repro Example

Bug: the redirect when trailingSlash=never and pathPrefix=* redirects without accounting for pathPrefix.

To run:

gatsby build --prefix-paths
gatsby serve --prefix-paths

Working: Navigate to /prefix/hello. Broken: Navigate to /prefix/hello/. This redirects to /hello. Should be /prefix/hello.

Changes made in gatsby-config.js:

pathPrefix: '/prefix',
trailingSlash: 'never',

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published