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

Route / doesn't work with absolute=false #666

Closed
mathieutu opened this issue Sep 11, 2023 · 1 comment · Fixed by #667
Closed

Route / doesn't work with absolute=false #666

mathieutu opened this issue Sep 11, 2023 · 1 comment · Fixed by #667
Assignees
Labels

Comments

@mathieutu
Copy link

Hi!
Because of the removal of last /, the home (/) route link doesn't work with Ziggy.
An update in the regexp should do the work. (I can do it if you want)

}).replace(`${this.origin}//`, `${this.origin}/`).replace(/\/+$/, '');

Thanks,
Matt'

@bakerkretzmar
Copy link
Collaborator

Oh good catch. Yeah if you can PR that (with a test please!) that would be great, thanks. Otherwise I'll do it Friday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants