Skip to content

fix: don't fail on routes that begin with the page base setting#546

Open
andyburke wants to merge 2 commits intovisionmedia:masterfrom
andyburke-forks:base_fix
Open

fix: don't fail on routes that begin with the page base setting#546
andyburke wants to merge 2 commits intovisionmedia:masterfrom
andyburke-forks:base_fix

Conversation

@andyburke
Copy link
Copy Markdown
Contributor

This resolves an issue where if you set the base to something that matches the beginning of one of your routes, things will not work properly. Eg:

page.base( '/en' ); // set to english localization

If you have a route like '/enroll', this will cause errors.

This change fixes the issue.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 92.531% when pulling 35e8c5f on andyburke-forks:base_fix into 0d7e127 on visionmedia:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Nov 14, 2019

Coverage Status

Coverage remained the same at 92.531% when pulling 05a745d on andyburke-forks:base_fix into 0d7e127 on visionmedia:master.

@matthewp
Copy link
Copy Markdown
Collaborator

Thanks for adding a test!

It looks like compiling made a whole bunch of changes that were related to your change. Why is that?

@andyburke
Copy link
Copy Markdown
Contributor Author

I honestly don't know. I just tried re-running npm install to see if I somehow have a different version of whatever libraries are used to compile, but I don't think I do.

Is there a way you could pull the branch and try to build and see if the same thing is happening?

@matthewp
Copy link
Copy Markdown
Collaborator

matthewp commented Dec 4, 2019

Yeah I can do that, probably not until this weekend though.

@andyburke
Copy link
Copy Markdown
Contributor Author

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants