diff --git a/examples/view-transitions/src/pages/movies/[id].astro b/examples/view-transitions/src/pages/movies/[id].astro index c8a2e26b7b8f..9b7326f4e2bf 100644 --- a/examples/view-transitions/src/pages/movies/[id].astro +++ b/examples/view-transitions/src/pages/movies/[id].astro @@ -3,9 +3,7 @@ import Layout from '../../layouts/Layout.astro'; import MovieDetails from '../../components/MovieDetails.astro'; import { getDataEntryById } from 'astro:content'; -// Data collection bug? -const id: any = '/src/content/movies/' + Astro.params.id; -const result = await getDataEntryById('movies', id); +const result = await getDataEntryById('movies', Astro.params.id as any); const data = result.data.data; ---