I am writing a site on asp net core and all pages in it are presented in the form of partialview. Thus, I achieve a spa model without using angular and other frameworks. When switching partialview, I can change the url of the page using
window.history.pushState ("object or string", "Title", "/ new url");
But when I switch back in the browser, my url just changes to the previous one, and partialview does not change. I want to intercept this transition and call the desired presentation. Is it possible?