Closed lylepratt closed 13 years ago
FYI, I landed a fix for this in the HEAD:
https://github.com/jquery/jquery-mobile/commit/d612edd126f478769b7b34b60d2f8a4f5a6a476d
Awesome. Thanks for the update. I had created a pull request to fix this, but your fix is more elegant.
Closing since Kin seems to have fixed this.
I have a url like this:
www.example.com/#/foo/1/
When I go to it, the page's base HREF gets incorrectly set to:
< base href="http://www.example.com//offer/1/" >
Note the extra "/" in the URL after the docBase.
It looks like when docLocation is set here its screwing up if
location.pathname
is just "/":It think changing
docLocation
to this is a solution: