Nuxt/test/fixtures/basic/pages/navigate-to.vue
Mathieu Magalhaes f5a3d7968c
fix(nuxt): respect redirects which differ only by trailing slash (#18593)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-16 09:26:15 -08:00

8 lines
144 B
Vue

<template>
<div>You should not see me</div>
</template>
<script setup>
await navigateTo('/', { replace: true, redirectCode: 301 })
</script>