krasimir / navigo

A simple vanilla JavaScript router.
MIT License
2.75k stars 250 forks source link

router.getCurrentLocation() does not return data for parameterized routes #308

Open teak opened 2 years ago

teak commented 2 years ago

The match object returned by router.getCurrentLocation() does not include the data property on routes that are configured with parameters.

I also noticed while testing this in your online playground that queryString seems to be parsed incorrectly with the hash included in it.