thomas_bitcraft
Nuxt generate error page
Sure this makes sense for a lot of cases. But if I generate everything and I want to always show my predefined 404 page if the file is not found in my file storage it would be nice to have the option to define a prerendered page for that
22 replies
Nuxt generate error page
@manniL / TheAlexLichter In general the behavior is strange if I use the
404.html
directly.
I linked now the 404.html as fallback: https://www.wenatex.com/de/de/asdasdasd - but it seems it does not use the logic in the error.vue
file, but uses pages/[...slug].vue
which is my default pagebuilder site does not load any content.
If I call it directly it works: https://wenatex-website.s3.eu-central-1.amazonaws.com/404.html - but takes a lot of time
And this would be my custom prerendered error page, but there the path is changed to /error as soon as the page is loaded: https://wenatex-website.s3.eu-central-1.amazonaws.com/error-page.html
So all options are not really good 😅22 replies
Nuxt generate error page
@manniL / TheAlexLichter Yes but the content of the page is not prerendered therefore empty. I tried to prerender it by making a custom route:
routes.push({
name:
error
,
path: '/error',
file: '~/error.vue',
});
This works in theorie - but now the browser url is rewritten to /error
when i get an 404. Is it possible to disable this?22 replies