From 91a1a0314557c0c2791067532eacaa29803ae44e Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Wed, 23 Oct 2024 17:04:44 +0200 Subject: [PATCH] fix(pat contentbrowser): Followup for path fix: set the rootPath if nothing is given. --- src/pat/contentbrowser/src/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pat/contentbrowser/src/App.svelte b/src/pat/contentbrowser/src/App.svelte index 543952484..33dbebe12 100644 --- a/src/pat/contentbrowser/src/App.svelte +++ b/src/pat/contentbrowser/src/App.svelte @@ -56,7 +56,7 @@ } else { // no path available. try to determine path from vocabularyUrl const vocabPath = new URL(vocabularyUrl).pathname.split("/"); - $currentPath = vocabPath.slice(0, vocabPath.length - 1).join("/"); + rootPath = contextPath = $currentPath = vocabPath.slice(0, vocabPath.length - 1).join("/"); } }