my business scenario is: when it is determined that the web page is opened in Wechat, click the payment button to jump ( location.href ) to the Wechat authorization page to obtain code (silent form), then redirect to the payment page, and bring back code after the link. If the user steps back at this point, the authorization page will fall into a loop again. I use location.replace to jump to the authorization page. At this time, the user will no longer enter the authorization page. But it will go back to the payment page without code at the beginning, and the intuitive feeling to the user is that the back button is still on the payment page, and you must go back to the home page again. How can you modify this process?