CyberShot Posted December 4, 2009 Share Posted December 4, 2009 I made a slider that works off the nav. So when you click the about page, in teh address bar, it says mydomain.com/# instead of myaddress.com/about. is there a way to fix this using javascript or jquery preferably? Link to comment https://forums.phpfreaks.com/topic/183934-the-address-url/ Share on other sites More sharing options...
YourNameHere Posted December 4, 2009 Share Posted December 4, 2009 we need code Link to comment https://forums.phpfreaks.com/topic/183934-the-address-url/#findComment-971076 Share on other sites More sharing options...
JustLikeIcarus Posted December 4, 2009 Share Posted December 4, 2009 Im thinking if you add "return false;" to the end of the function handling the click event it wont add the '#'. Link to comment https://forums.phpfreaks.com/topic/183934-the-address-url/#findComment-971218 Share on other sites More sharing options...
CyberShot Posted December 4, 2009 Author Share Posted December 4, 2009 yes, that did work. that's a little better than having the hash sign at the end. From what I can tell, there is no really easy way to replace the hash with a word, all you can do is get rid of it. I used return (false); Link to comment https://forums.phpfreaks.com/topic/183934-the-address-url/#findComment-971509 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.