From 906b309151a45b2c2f4fa8f7a64452518f2e8367 Mon Sep 17 00:00:00 2001 From: Sveinung Gundersen Date: Thu, 8 Dec 2022 11:00:32 +0100 Subject: [PATCH] Fixed URI for locally running, proxy-based interactive tools --- lib/galaxy/managers/interactivetool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/managers/interactivetool.py b/lib/galaxy/managers/interactivetool.py index d091c4fd8621..8ba081e60aae 100644 --- a/lib/galaxy/managers/interactivetool.py +++ b/lib/galaxy/managers/interactivetool.py @@ -294,7 +294,8 @@ def target_if_active(self, trans, entry_point): rval = "{}/{}".format(rval.rstrip("/"), entry_point.entry_url.lstrip("/")) else: rval = self.get_entry_point_path(trans, entry_point) - + if not self.app.config.interactivetools_upstream_proxy and self.app.config.interactivetools_proxy_host: + rval = f"{protocol}//{request_host}{rval}" return rval def get_entry_point_subdomain(self, trans, entry_point):