Skip to content

Commit

Permalink
fix: mayhaps not redirect to the api but the view
Browse files Browse the repository at this point in the history
  • Loading branch information
japsu committed Oct 27, 2024
1 parent f294292 commit 890ce7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion infokala_tracon/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@

urlpatterns = [
path("", default_event_redirect_view),
re_path(r"^events/(?P<event_slug>[a-z0-9-]+)/messages/$", static_app_view),
re_path(
r"^events/(?P<event_slug>[a-z0-9-]+)/messages/$",
static_app_view,
name="infokala_view",
),
re_path(r"^events/[a-z0-9-]+/messages$", slash_redirect_view),
re_path(
r"^events/(?P<event_slug>[a-z0-9-]+)/messages/config.js$",
Expand Down
2 changes: 1 addition & 1 deletion infokala_tracon/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ def default_event_redirect_view(request):
from infokala.models import MessageType

message_type = MessageType.objects.latest("id")
return redirect("infokala_messages_view", event_slug=message_type.event_slug)
return redirect("infokala_view", event_slug=message_type.event_slug)

0 comments on commit 890ce7d

Please sign in to comment.