We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/
1 parent 43535b0 commit 796d8f1Copy full SHA for 796d8f1
docs/src/.vitepress/theme/VersionPicker.vue
@@ -34,7 +34,7 @@ const getBaseRepository = () => {
34
if ((origin.includes('qutip.org')) || (origin.includes('github.io'))) {
35
// Extract the first part of the path as the repository name
36
const pathParts = pathname.split('/').filter(Boolean);
37
- const baseRepo = pathParts.length > 0 ? `/${pathParts[0]}/` : '/';
+ const baseRepo = pathParts.length > 0 ? `/${pathParts[0]}` : '';
38
return `${origin}${baseRepo}`;
39
} else {
40
// For custom domains, use just the origin (e.g., https://docs.makie.org)
0 commit comments