kitbagjs / router

A type safe router for vuejs
MIT License
131 stars 1 forks source link

Fix router.find returning any route with `/` as the path when resolving an external url with no path #181

Closed pleek91 closed 1 month ago

pleek91 commented 1 month ago

Description

Adds a route match rule for host to make sure that http://example.com doesn't match a route with path /. This would previously match because the path for https://example.com is /. So we need to check the host itself.

Closes https://github.com/kitbagjs/router/issues/179

netlify[bot] commented 1 month ago

Deploy Preview for kitbag-router ready!

Name Link
Latest commit 291f2c0e48e886a318f310c04cb6c71d1c964894
Latest deploy log https://app.netlify.com/sites/kitbag-router/deploys/664d64f93cb63d000854e4ed
Deploy Preview https://deploy-preview-181--kitbag-router.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.