Skip to content

hash based routing, check for '/#' or '#' before adding it to a route#65

Open
evadnoob wants to merge 6 commits intoolivernn:masterfrom
evadnoob:master
Open

hash based routing, check for '/#' or '#' before adding it to a route#65
evadnoob wants to merge 6 commits intoolivernn:masterfrom
evadnoob:master

Conversation

@evadnoob
Copy link
Copy Markdown

@evadnoob evadnoob commented Jan 3, 2013

I've made a small patch to hash based routing to prevent urls from getting extra '/#' prepended to them.

I've had links like:

<a href="#somepath/xyz"></a>

And it in the url we sometimes see:

/#/#/somepath/xyz

And a log message with routeNotFound

This patch fixes that problem....

… spend much longer on it. When using forceHashRouting=true, upon the first load of Davis, the link selector event handler was running and causing issues with routes not being found. Seems like a load order problem where the hash routing plugin hadn't overriden enough functionality from base davis.js...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant