cerebral-legacy / cerebral-module-router

An opinionated URL change handler for Cerebral
http://cerebral-website.herokuapp.com/documentation/cerebral-module-router
19 stars 4 forks source link

Fix issue with router not handling queries in at root path #111

Closed tomSawkins closed 8 years ago

tomSawkins commented 8 years ago

Currently if there is a query add the the base route (ie. '/?isBase=true')

If onlyHash is set to true then currently the path gets altered to be "/?isBase=true#/" instead of "/#/?isBase=true"

The search param is not on addressbar but probably should be added to it keep it in line with the rest of the file. Hence the use of "new URL(location.href).search"

tomSawkins commented 8 years ago

Premature pull request