@sr57 Here is the content of the headers when I try to load directly the /students route.
https://mydomain.fr/students
Host: mydomain.fr
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: XSRF-TOKEN=... // Here is the token, I just don't show it here
laravel_session=... // Here is the laravel session, I just don't show it here
AIMAwU8PIVeBjyFERCjpUZ3zQ4abFbKHnOTbfV4X=... // I don't know what it is and I just don't show it here
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
GET: HTTP/2.0 200 OK
content-type: text/html
date: Sat, 16 Jul 2022 20:47:58 GMT
server: Apache
last-modified: Sat, 16 Jul 2022 18:21:40 GMT
etag: W/"28e-5e3f034be84e5"
content-encoding: gzip
X-Firefox-Spdy: h2
It looks like the API call has been correctly executed, so the problem is perhaps with my vue router.
Do you see something strange in my router configuration ?
import { createRouter, createWebHistory } from 'vue-router'
import store from '../store'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import Students from '../views/students/Students.vue'
const routes = [
{
path: '/',
name: 'home',
component: Home,
meta: {
requiresAuth: true
}
},
{
path: '/login',
name: 'login',
component: Login
},
{
path: '/students',
name: 'students',
component: Students,
meta: {
requiresAuth: true
}
},
{
path: '/:pathMatch(.*)*',
name: 'notfound',
component: Home
}
]
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes
})
export default router