Route refresh page

Hi guys,

could you tell me what is wrong here:

app.dialog.alert("Message to display", "Title", function (){ 
    app.router.navigate(
        app.router.currentRoute.url, 
        { reloadCurrent: true, ignoreCache: true 
    }); 
});

I am getting this message on the console: Uncaught TypeError: Cannot read property ‘url’ of undefined

Any thoughts?

There is no app.router, .router must be called on View instance

been trying to solve this and cannot find a way.

can you share the code? how did you try to solve it?