Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion stade/core/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.shortcuts import get_object_or_404
from django.urls import path, register_converter
from django.views.generic import TemplateView
from django.views.generic import RedirectView, TemplateView

from stade.core import views
from stade.core.models import Challenge
Expand Down Expand Up @@ -48,6 +48,9 @@ def to_url(self, value: str) -> str:
name='request-submission-bundle',
),
path('data/', TemplateView.as_view(template_name='data/base.html'), name='data'),
# The load balancer doesn't support redirecting to URL fragments, so these live here.
path('data/2020/', RedirectView.as_view(url='/data/#2020', permanent=True)),
path('data/2024/', RedirectView.as_view(url='/data/#2024', permanent=True)),
path('stats/', views.stats, name='stats'),
path('challenges/', views.challenges, name='challenges'),
path('leaderboards/<challenge_slug:challenge>/', views.leaderboard_page, name='leaderboards'),
Expand Down
Loading