Skip to content

Commit

Permalink
Fix for docs in subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjcowan committed Dec 13, 2024
1 parent 74e8805 commit ac24e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/components/pages/docs-package.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default defineComponent({
props: ["config", "data"],
setup(props, ctx) {
const baseUrl = computed(() => {
return (window.location.origin + window.location.pathname).trimEnd("/");
const x = window.location.origin + window.location.pathname;
return x.replace(/\/+$/, "");
});
const packageId = computed(() => {
return (props.data || {}).packageId || "";
Expand Down

0 comments on commit ac24e5b

Please sign in to comment.