I'm using asuals jquery plugin $ .address
Everything is working but The URL still offers the hash tag (
$ ("# ulSideNav a"). Address (function () {return $ (this) .attr ('href'). Replace (" (return "/ suburban")
$ address.change (function (event) {var uri = Event.value; if (Yuri Length> 1) {ajaxRequest (uri);}}); URL (no base URL)
Changes to $ ('# ulSideNav a') makes an Ajax request. Click (function (e) {$ (" AddClass ('Active Selected');}); Activate Navbar The status is turned on
http: // BASEURL / # / suburl this is how the URL looks at the end
So my question is => how to delete that hashtag
(Maybe some location with window, but all my efforts fail)
Try it out,
newurl = window.location.href.replace ("# /", '') console.log ( Newurl); Window.location.href = NEWURL;
No comments:
Post a Comment