From b9db64d4f95d0c87f6ed64559693a403907d58f9 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 18 Apr 2021 15:40:46 +0200 Subject: [PATCH] fix device links for path-route environments --- owrx/controllers/settings/sdr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/owrx/controllers/settings/sdr.py b/owrx/controllers/settings/sdr.py index cfa0db0..d813670 100644 --- a/owrx/controllers/settings/sdr.py +++ b/owrx/controllers/settings/sdr.py @@ -73,10 +73,9 @@ class SdrDeviceListController(AuthorizationMixin, WebpageController): """.format( device_name=config["name"], - device_link="{}/{}".format(self.request.path, quote(device_id)), + device_link="{}settings/sdr/{}".format(self.get_document_root(), quote(device_id)), state=state_info, additional_info=additional_info, - newprofile_link="{}settings/sdr/{}/newprofile".format(self.get_document_root(), quote(device_id)), ) return """