Answer the question
In order to leave comments, you need to log in
How to organize routing so that 403 and 404 pages work?
I want to organize the display of the error "Page not found" and "Access denied". Below is a route (located last in the list) that catches all paths not previously specified and returns the component with an error
let routes = [
{
path: '*',
name: 'page_not_found',
components: {
default: NotFoundComponent,
},
meta: {
title: 'page_not_found',
},
layout: 'empty'
},
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question