I’m not familiar with what you are working with.
So here is a example I use to load the same view after a refresh of a dynamic web page.
When ever the user loads a new view I call saveLastView(“somethingyouwanttostore”).
Once the user refreshes the page I always call restoreLastView() which retrieves the session storage item and if it’s not available I fall back on my default which is in this example “platform/dashboard”.
function saveLastView(url){
sessionStorage.setItem("view", url);
}
function restoreLastView(){
var view = sessionStorage.getItem("view") || 'platform/dashboard';
$("[data-url='"+ view +"']").addClass('active');
$(".content").load(view);
}
If you have any question please let me know!