mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 11:57:13 +00:00
19 lines
367 B
Vue
19 lines
367 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<div>navigate-to-forbidden.vue</div>
|
||
|
<NuxtLink to="/forbidden">
|
||
|
should throw a 404 error
|
||
|
</NuxtLink>
|
||
|
<NuxtLink to="/some-404">
|
||
|
should be caught by catchall
|
||
|
</NuxtLink>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
definePageMeta({
|
||
|
middleware: ['override'],
|
||
|
validate: to => to.path !== '/forbidden'
|
||
|
})
|
||
|
</script>
|