support project urls without trailing slash

This commit is contained in:
Jonas Heinrich 2026-03-13 10:32:08 +01:00
parent 433d030539
commit a5e2fee7a9

View file

@ -31,6 +31,10 @@ urlpatterns = [
GovPlanDetailView.as_view(),
name="plan",
),
path(
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>"),
GovPlanDetailView.as_view(),
),
path(
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/propose-update/"),
GovPlanProposeUpdateView.as_view(),
@ -41,9 +45,17 @@ urlpatterns = [
GovPlanProposeUpdateView.as_view(),
name="propose_planupdate",
),
path(
pgettext_lazy("url part", "<slug:gov>/vorhaben/<slug:plan>"),
GovPlanDetailView.as_view(),
),
path(
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
GovPlanSectionDetailView.as_view(),
name="section",
),
path(
pgettext_lazy("url part", "<slug:gov>/<slug:section>"),
GovPlanSectionDetailView.as_view(),
),
]