fix device links for path-route environments

This commit is contained in:
Jakob Ketterl 2021-04-18 15:40:46 +02:00
parent 51af299aa2
commit b9db64d4f9

View File

@ -73,10 +73,9 @@ class SdrDeviceListController(AuthorizationMixin, WebpageController):
</li> </li>
""".format( """.format(
device_name=config["name"], 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, state=state_info,
additional_info=additional_info, additional_info=additional_info,
newprofile_link="{}settings/sdr/{}/newprofile".format(self.get_document_root(), quote(device_id)),
) )
return """ return """