tighten / ziggy

Use your Laravel routes in JavaScript.
MIT License
3.86k stars 247 forks source link

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

Closed mathieutu closed 12 months ago

mathieutu commented 1 year ago

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) https://github.com/tighten/ziggy/blob/f2b43c03e49b0f717168b1d578c8c4f8c423daca/src/js/Route.js#L119-L119

Thanks, Matt'

bakerkretzmar commented 1 year ago

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