fix(dx/client): doc notes not working

This commit is contained in:
Elian Doran
2025-09-03 12:00:06 +03:00
parent f9e725bcf8
commit cb6d87302d
2 changed files with 3 additions and 1 deletions

View File

@@ -48,6 +48,6 @@ function getUrl(docNameValue: string, language: string) {
// Cannot have spaces in the URL due to how JQuery.load works.
docNameValue = docNameValue.replaceAll(" ", "%20");
const basePath = window.glob.isDev ? new URL(window.glob.assetPath).pathname : window.glob.assetPath;
const basePath = window.glob.isDev ? window.glob.assetPath + "/.." : window.glob.assetPath;
return `${basePath}/doc_notes/${language}/${docNameValue}.html`;
}