diff --git a/owrx/controllers/settings/sdr.py b/owrx/controllers/settings/sdr.py index 0de47ff..9d61427 100644 --- a/owrx/controllers/settings/sdr.py +++ b/owrx/controllers/settings/sdr.py @@ -27,7 +27,7 @@ class SdrDeviceListController(AuthorizationMixin, WebpageController): """.format( profile_name=profile["name"], - profile_link="{}settings/sdr/{}/{}".format( + profile_link="{}settings/sdr/{}/profile/{}".format( self.get_document_root(), quote(device_id), quote(profile_id) ), ) diff --git a/owrx/http.py b/owrx/http.py index bf8ddc3..0abdf7e 100644 --- a/owrx/http.py +++ b/owrx/http.py @@ -129,9 +129,9 @@ class Router(object): RegexRoute( "^/settings/sdr/([^/]+)$", SdrDeviceController, method="POST", options={"action": "processFormData"} ), - RegexRoute("^/settings/sdr/([^/]+)/([^/]+)$", SdrProfileController), + RegexRoute("^/settings/sdr/([^/]+)/profile/([^/]+)$", SdrProfileController), RegexRoute( - "^/settings/sdr/([^/]+)/([^/]+)$", + "^/settings/sdr/([^/]+)/profile/([^/]+)$", SdrProfileController, method="POST", options={"action": "processFormData"},