diff --git a/docs/src/.vitepress/theme/VersionPicker.vue b/docs/src/.vitepress/theme/VersionPicker.vue index ae2b25121..a38c51a5a 100644 --- a/docs/src/.vitepress/theme/VersionPicker.vue +++ b/docs/src/.vitepress/theme/VersionPicker.vue @@ -34,7 +34,7 @@ const getBaseRepository = () => { if ((origin.includes('qutip.org')) || (origin.includes('github.io'))) { // Extract the first part of the path as the repository name const pathParts = pathname.split('/').filter(Boolean); - const baseRepo = pathParts.length > 0 ? `/${pathParts[0]}/` : '/'; + const baseRepo = pathParts.length > 0 ? `/${pathParts[0]}` : ''; return `${origin}${baseRepo}`; } else { // For custom domains, use just the origin (e.g., https://docs.makie.org)