-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 navigation when base
path is set and validate that option's value
#1666
Conversation
Have you seen #1608 ? This PR seems to be editing the same line of code. I'm wondering what you think about the difference between the two PRs |
I wasn't aware of that PR, it also seems to solve different, yet similar issues. Checking for a trailing slash would cover this issue and other cases, but I also think it's better to update the docs and mention it in the error message. |
…359/kit-paths-base
I've merged the other PR here, they should appear as a co-author. Also updated this PR's description. |
base
path is set and validate that option's value
updated some of the text slightly and merged. thank you! |
Thank you, Ben! That must've been a chore |
Nope. It was easy enough |
Closes #1359
Fixes #1476
Closes #1608
Updating the docs in this case would be better than manipulating the paths at runtime. Changing the regex or url slicing solves the problem for dev, but still throws when adapters starts building (I tried). Rather than adding checks for all possible uses at runtime or (worse) changing the config passed from the user, it would be clearer for the user to just make sure that the config is correct.