Skip to content

Commit 796d8f1

Browse files
authored
remove extra / in URL (#308)
1 parent 43535b0 commit 796d8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/.vitepress/theme/VersionPicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const getBaseRepository = () => {
3434
if ((origin.includes('qutip.org')) || (origin.includes('github.io'))) {
3535
// Extract the first part of the path as the repository name
3636
const pathParts = pathname.split('/').filter(Boolean);
37-
const baseRepo = pathParts.length > 0 ? `/${pathParts[0]}/` : '/';
37+
const baseRepo = pathParts.length > 0 ? `/${pathParts[0]}` : '';
3838
return `${origin}${baseRepo}`;
3939
} else {
4040
// For custom domains, use just the origin (e.g., https://docs.makie.org)

0 commit comments

Comments
 (0)