diff --git a/showcases/patternhub/components/version-switcher/version-switcher.tsx b/showcases/patternhub/components/version-switcher/version-switcher.tsx index 3020f708399..ad8db938068 100644 --- a/showcases/patternhub/components/version-switcher/version-switcher.tsx +++ b/showcases/patternhub/components/version-switcher/version-switcher.tsx @@ -100,7 +100,9 @@ const VersionSwitcher = () => { const handleChange = (branch: string) => { const lastPath = router.asPath; - const isTag = branch.split('.').length === 3 && branch.startsWith('v'); + const isTag = + (branch.split('.').length === 3 && branch.startsWith('v')) || + branch === 'latest'; window.location.replace( sanitize( `https://${owner}.github.io/${repo}${