forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce a starting and trailing slash on page urls (gatsbyjs#378)
This has been a common source of problem for users, and I think gatsby can solve it automatically by enforcing these paths to fit a certain criteria. This change removes the invariant and opts to fix the path automatically removing some of the user headache. It also enforces a trailing slash for our current react-router setup.
- Loading branch information
1 parent
5d6872f
commit bfbe313
Showing
2 changed files
with
39 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters