Using JavaScript to change the URL used when a page is bookmarked

后端 未结 6 611
误落风尘
误落风尘 2021-01-14 05:55

JavaScript doesn\'t allow you to update window.location without triggering a reload. While I agree with this policy in principle (it shouldn\'t be possible to

6条回答
  •  误落风尘
    2021-01-14 06:06

    How about detecting on page load if the URL contains a hash, and if it does, directing them to the page you want them to go to?

提交回复
热议问题