diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro index d96a851817..7197674db4 100644 --- a/packages/astro/components/ViewTransitions.astro +++ b/packages/astro/components/ViewTransitions.astro @@ -187,7 +187,7 @@ const { fallback = 'animate' } = Astro.props as Props; transitionEnabledOnThisPage() ) { ev.preventDefault(); - navigate('forward', link.href, { index:currentHistoryIndex, scrollY:0 }); + navigate('forward', link.href, { index: currentHistoryIndex, scrollY: 0 }); currentHistoryIndex++; const newState: State = { index: currentHistoryIndex, scrollY }; persistState({ index: currentHistoryIndex - 1, scrollY });