Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix route().current() not working on a route at the domain root #356

Merged
merged 4 commits into from
Nov 10, 2020

Conversation

bakerkretzmar
Copy link
Collaborator

Fixes #355, in which route().current() and route().current('home') didn't work if the route / current URL was just the base domain of the site, e.g. https://ziggy.test.

Previously, the URL regex pattern generated and matched for routes like this would have been ziggy.test//, which fails, now it's just ziggy.test.

@bakerkretzmar bakerkretzmar merged commit f5aecfb into main Nov 10, 2020
@bakerkretzmar bakerkretzmar deleted the jbk/fix-current-at-root branch November 10, 2020 21:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

route().current() with root url
1 participant