Move backward through history skipping the same page with different query string
问题 When I refresh a page or redirect to the same one using the same url, I can click in a button with "window.history.back();" code and go back to the previous page. However, If the query string was changed, I just back to the same page when I try to move back. Example 1: page1.html -> page2.html -> page2.html -> [click back button] -> page1.html Example 2: page1.html -> page2.html -> page2.html?x=123 -> [click back button] -> page2.html What I want: page1.html -> page2.html -> page2.html?x=123