portfolio/pages/work/[slug].vue
Michael Winter 9af20c1e5d Add shareable URLs for works with scores
- Score icon updates URL to /?work=[slug] without navigation
- Modal closes to reset URL back to /
- Direct /work/[slug] access redirects to /?work=[slug]
- Index page opens modal when ?work= query param is present
- Works with SSG/prerendering for /?work= routes
2026-03-06 09:19:25 +01:00

15 lines
216 B
Vue

<script setup>
const route = useRoute()
const router = useRouter()
const slug = route.params.slug
onMounted(() => {
router.replace('/?work=' + slug)
})
</script>
<template>
<div></div>
</template>