DocumentDrivenNotFound.vue 878 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div class="w-full min-h-screen bg-black"></div>
  3. </template>
  4. <script setup>
  5. const route = useRoute();
  6. let redirectPath = route.path.endsWith('/') ? route.path.slice(0, -1) : route.path;
  7. switch( redirectPath ){
  8. case '/docs/getting-started':
  9. navigateTo( redirectPath+'/these-images-vs-others', { replace: true } );
  10. break;
  11. case '/docs/guide':
  12. navigateTo( redirectPath+'/migrating-from-official-php-images', { replace: true } );
  13. break;
  14. case '/docs/reference':
  15. navigateTo( redirectPath+'/environment-variable-specification', { replace: true } );
  16. break;
  17. case '/docs/laravel':
  18. navigateTo( redirectPath+'/laravel-automations', { replace: true } );
  19. break;
  20. case '/docs/customizing-the-image':
  21. navigateTo( redirectPath+'/changing-common-php-settings', { replace: true } );
  22. break;
  23. }
  24. </script>