Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(v2): reject routeBasePath: '' #3377

Merged
merged 4 commits into from
Aug 31, 2020
Merged

fix(v2): reject routeBasePath: '' #3377

merged 4 commits into from
Aug 31, 2020

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Aug 31, 2020

Motivation

Allowing '' leads to errors (because of #3374)

It is documented to use '/' for docs only, blog only modes, and '' should not be used anyway so I don't consider this to be a breaking change, as users are supposed to follow our recommendations.

I would rather only accept values starting with / (using the Joi PathnameSchema), but that would be a breaking change.

'' was allowed recently but I think it was a mistake:

#3120
#3126

@slorber slorber requested a review from yangshun as a code owner August 31, 2020 17:48
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 31, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit d27c7e1

https://deploy-preview-3377--docusaurus-2.netlify.app

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Aug 31, 2020
@slorber slorber merged commit 1eb6e13 into master Aug 31, 2020
@yangshun yangshun deleted the slorber/routeBasePath branch August 31, 2020 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants