After the application of h5 single page in ios jumps to the third-party page, it automatically becomes the home page.

in Wechat"s browser, a single-page page jumps to a third-party page, and then clicks back. When the result returns, it goes back not to the previous page, but to the home page. Why?

routing of hash pattern when used


  1. make sure that no hash is missing on the returned page
  2. make sure that you can accurately locate the target page with hash

Jump to the third-party page, click back, the js, rendered page will be reloaded, and your last state will not be saved, which is equivalent to re-executing JS

.
Menu