Hi, is there a way to get it to skip a previous page if that page had a certain text in it’s url? So for instance, if I edited a post, saved it and then clicked go back, I’d like it to skip the edit page and go to the page before that.
Sorry for the late reply. We could easily go two pages back with JS history.go(-2), however, I don’t think I know how to check previous page URL. I believe we can only check current page URL, and depending on that use history.go(-1) vs history.go(-2), but I don’t think that’s what you need?
I look it up after I saw your reply and I now see why it can’t be done just though history. But what about if your plugin logged the last couple of pages visited. Since it’s all part of the same site, there shouldn’t be any privacy concerns and then you’d have the ability to go back to a specific previous page or in my case skip a page with certain text in the url?