From 5e28f5dca162ec01d6fd32207404f66fa2276604 Mon Sep 17 00:00:00 2001 From: Alexander Pavlov Date: Tue, 17 May 2022 12:07:21 +0300 Subject: [PATCH] Remove trailing $ from websocket_urlpatterns to work with custom path to fix #12241 Signed-off-by: Alexander Pavlov --- awx/main/routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/routing.py b/awx/main/routing.py index 100347f64e..c96505b7e1 100644 --- a/awx/main/routing.py +++ b/awx/main/routing.py @@ -27,8 +27,8 @@ class AWXProtocolTypeRouter(ProtocolTypeRouter): websocket_urlpatterns = [ - re_path(r'websocket/$', consumers.EventConsumer.as_asgi()), - re_path(r'websocket/broadcast/$', consumers.BroadcastConsumer.as_asgi()), + re_path(r'websocket/', consumers.EventConsumer.as_asgi()), + re_path(r'websocket/broadcast/', consumers.BroadcastConsumer.as_asgi()), ] application = AWXProtocolTypeRouter(