switch url scheme to avoid conflicts

This commit is contained in:
Jakob Ketterl 2021-03-03 21:55:49 +01:00
parent d123232f28
commit 03315d7960
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class SdrDeviceListController(AuthorizationMixin, WebpageController):
</li>
""".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)
),
)

View File

@ -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"},