Skip to content

Commit

Permalink
remove extra / in URL (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang authored Nov 14, 2024
1 parent 43535b0 commit 796d8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/.vitepress/theme/VersionPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 796d8f1

Please sign in to comment.