Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Needed host check for pushstate.js #249
pushstate.js was only checking the pathname. Since HTML5 pushstate only works on the same hostname, other links should be allowed to work as normal. Links to other domains will now work. Also updated the variable name at lines 46 and 47 to be the pathname instead of the href, since that's what we are really working with at that point in the code.
added a commit
this pull request
Jan 23, 2013
I know the documentation needs some work. What else needs to be done? It's working quite awesome for me in my projects, now, but I did have to prepend my routes in the controllers with a forward slash /. I played around with removing the forward slash, but it messed up the URL in the address bar whenever they were more than one level deep. I'll work on getting it to work without changing the controller routes.
Anything else you can think of?
Have a great day!
On Wednesday, January 23, 2013 at 3:41 PM, David Luecke wrote:
@marshallswain: If you use it without any major problems, find a fix for the problem and would like to contribute documentation that would be greatly appreciated! Just create a