Hi,
I try to make link to main page and clear all cached pages, but I don’t know why does’t work.
In page Cuenta.html I try different ways:
Simply:
<a href="/" class="link textoSelects">Cerrar Sesión</a>
Not work, but in console I can see: [2020-05-07T13:39:36.604Z] “GET /index.html” "Mozilla/5.0
With Method:
<a @click="openAlert" class="red-link textoSelects">Cerrar Sesión</a>
methods: {
openAlert: function () {
app.views.main.router.navigate('/');
//OR
this.$router.navigate('/')
//OR
app.views.main.router.navigate('/', {reloadAll: true})
}
}
Same message in console.
I try with other routes and have same problem.
Routes:
var routes = [
{
name:'index',
path: '/',
url: './index.html',
options: {
reloadAll: true,
ignoreCache: true,
}
},
{
path: '/about/',
url: './pages/about.html',
},
{
path: '/form/',
url: './pages/form.html',
},
...
EDIT
I found that if I use ‘link external’ work:
<a href="/" class="link external textoSelects">Cerrar Sesión</a>
But I need redirect from method, because I need clear LocalStorage and show notification