Router go back and refresh

I have a router , I have several pages, which come back or refresh, but the “back” or refresh of the routers do not work. What do I do? My code the router is :

import { ok, redirect, WixRouterSitemapEntry } from “wix-router”;

// SAMPLE DATA
const paginas = {

"aula1": { 
    title: "aula1", 
    id: "", 
    url: "aula1", 
    path: "", 
    qry: "" 
},  
"aula2": { 
    title: "aula2", 
    id: "", 
    url: "aula2", 
    path: "", 
    qry: "" 
} 

};
let id;

export function privado_Router(request) {
let qry = request.query;
let path = request.path;
// Get item name from URL request
const name = request.path[0];
let prefix = request.prefix; // “animals”
// Get the item data by name
const data = paginas[name];

let user = request.user; 

if (data) { 

    // Define SEO tags  
    /*const seoData = {  
        title: data.title,  
        description: "This is a description of " + data.title + " page", 
        noIndex: false, 
        metaTags: { 
           "og:title": data.title, 
           "og:image": data.image 
        } 
      };*/ 

    // Render item page  
    data.id = user["id"]; 
    if (qry) { 
        if (qry["e"] !== undefined) { 
            data.qry = qry; 

        } 
        //data.qry = qry["ev"]; 

    } 
    id = data.id; 
    data.path = path; 
    // if (id !== user.id) { 
    //return redirect("https://www.cura-te.net.br/nao-possui-permissao"); 
    //} 
	
    return ok("privado", data);//, seoData);  
} 

}

export function privado_SiteMap(request) {
//Add your code for this event here:
}