From 58b2b95040bfba8f945fc3a5d7a2b791e641eafc Mon Sep 17 00:00:00 2001 From: Vincent Rodriguez <64779770+R-mooon@users.noreply.github.com> Date: Thu, 17 Jun 2021 15:42:23 +0200 Subject: [PATCH] Error page done (#452) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Error page done * :bug: (page) update template location to avoid overwriting docus error page Co-authored-by: Yaël GUILLOUX --- nuxtjs.org/components/templates/Error.vue | 33 +++++++++++++++++++++++ src/app/pages/_.vue | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 nuxtjs.org/components/templates/Error.vue diff --git a/nuxtjs.org/components/templates/Error.vue b/nuxtjs.org/components/templates/Error.vue new file mode 100644 index 000000000..4a73c2495 --- /dev/null +++ b/nuxtjs.org/components/templates/Error.vue @@ -0,0 +1,33 @@ + + + diff --git a/src/app/pages/_.vue b/src/app/pages/_.vue index f759659dc..b8317e4b5 100644 --- a/src/app/pages/_.vue +++ b/src/app/pages/_.vue @@ -35,7 +35,7 @@ export default defineComponent({ .fetch() // Break on missing page query - if (!page) return error({ statusCode: 404, message: 'Page not found' }) + if (!page) return error({ statusCode: 404, message: '404 - Page not found' }) // Get page template page.template = $docus.getPageTemplate(page)