kitbagjs / router

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

update Router.find logic #179

Closed stackoverfloweth closed 1 month ago

stackoverfloweth commented 1 month ago

I found with external urls, or possibly for any url that shouldn't actually match a route if you have a route that's only a slash, router.resolve('https://github.io') will return that route

My specific test case is route

  {
    name: 'home',
    path: '/',
    component: HomeView,
  },