-
-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't add trailing slashes to generated routes
Module was adding a trailing slash for extra routes that it was generating. This isn't normally a problem as VueRouter runs by default in non-strict mode and normalizes paths to not have trailing slashes but when the "router.trailingSlash = false" option was set in Nuxt, then the matching was strict and actually made trailing slashes appear in the path. Follow the same logic as Nuxt and: - don't add trailing slashes by default or when "router.trailingSlash" option is set to "false" - add trailing slashes when "router.trailingSlash" option is set to "true" Resolves #717
- Loading branch information
Showing
4 changed files
with
362 additions
and
325 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
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
Oops, something went wrong.