diff --git a/components/EditGitlab.vue b/components/EditGitlab.vue index 632e095285781ded729a73966729fb3ec72808cf..ed11924b351e450a066b3f63d39fd8569a39827b 100644 --- a/components/EditGitlab.vue +++ b/components/EditGitlab.vue @@ -11,15 +11,12 @@ const { page } = useContent(); const owner = ref("mdm-lab"); const repo = ref("wiki"); const branch = ref("main"); - - const baseUrl = ref(new URL("https://gitlab.pasteur.fr")); -// https://github.com/rplanel/defense-finder-wiki-test/edit/dev/content/1.introduction/0.index.md -const path = ref( - new URL( +const path = computed(() => { + return new URL( `/${owner.value}/${repo.value}/-/edit/${branch.value}/content/${page.value._file}`, baseUrl.value ).href -); +}) </script>