I want to stick a hash in URL between the main domain and /the/rest/of/url
.
Apparently, I'm not doing it right.
I used:
window.location.hash = location.pathname;
Hoping to replace http://www.mybusinesssite.com/path/to/mypage
with http://www.mybusinesssite.com/#/path/to/mypage
Instead, I get http://www.mybusinessite.com/path/to/mypage/#/path/to/my/page
What's the proper way to make it http://www.mybusinesssite.com/#/path/to/mypage ?