SBA users are already league members - they don't need a marketing page. Moving the games list to "/" reduces friction by eliminating a redirect. Changes: - pages/index.vue: Now shows games list (was marketing/dashboard) - pages/games/index.vue: Redirects to / for backwards compatibility - Updated all internal links from /games to / - Auth callback redirects to / after login User flow is now: - Not logged in: / → auth middleware → Discord OAuth → / - Logged in: / shows games list directly Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
381 B
Vue
Executable File
17 lines
381 B
Vue
Executable File
<script setup lang="ts">
|
|
// Redirect /games to / for backwards compatibility
|
|
// The games list is now at the index page
|
|
definePageMeta({
|
|
middleware: ['auth'],
|
|
})
|
|
|
|
// Redirect immediately
|
|
navigateTo('/', { replace: true })
|
|
</script>
|
|
|
|
<template>
|
|
<div class="flex items-center justify-center min-h-[50vh]">
|
|
<div class="text-gray-500">Redirecting...</div>
|
|
</div>
|
|
</template>
|