fix(lobby): normalize host SPA deeplink path segments
This commit is contained in:
@@ -22,7 +22,9 @@ def host_screen(request, spa_path=None):
|
||||
if settings.WPP_SPA_ENABLED:
|
||||
host_route = "/host"
|
||||
if spa_path:
|
||||
host_route = f"/host/{spa_path.strip('/')}"
|
||||
normalized_spa_path = "/".join(segment for segment in spa_path.split("/") if segment)
|
||||
if normalized_spa_path:
|
||||
host_route = f"/host/{normalized_spa_path}"
|
||||
return _render_spa_shell(request, host_route, "host")
|
||||
|
||||
categories = Category.objects.filter(is_active=True).order_by("name")
|
||||
|
||||
Reference in New Issue
Block a user