changeset 76:e1670bd75c1c

fix opening of viewers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Jan 2026 16:59:46 +0100
parents 708ad81e971c
children 80b663d5f8fe
files NEWS WebApplication/toolbox.js
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Tue Jan 06 11:04:40 2026 +0100
+++ b/NEWS	Tue Jan 06 16:59:46 2026 +0100
@@ -1,6 +1,8 @@
 Pending changes in the mainline
 ===============================
 
+* Fix opening of viewers if Orthanc is not branched at the root of the server
+
 
 Version 1.1 (2025-11-07)
 ========================
--- a/WebApplication/toolbox.js	Tue Jan 06 11:04:40 2026 +0100
+++ b/WebApplication/toolbox.js	Tue Jan 06 16:59:46 2026 +0100
@@ -43,7 +43,7 @@
 
 
 function interpretRelativeUrl(relative_url) {
-  return new URL(relative_url, new URL('../..', window.location.origin) /* this is the base URL */);
+  return new URL(relative_url, new URL('../..', window.location) /* this is the base URL of Orthanc */);
 }