Skip to content
Snippets Groups Projects
Commit 2bc1c8d8 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Make path reactive : Closes #131

parent 926e03ef
No related branches found
No related tags found
1 merge request!9Resolve "Add Js plugin to render 3D protein structure"
Pipeline #112072 passed
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment