Skip to content

Commit

Permalink
add a redirect in case the user has bookmarked the old link
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Nov 20, 2024
1 parent b8826eb commit 71e5848
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lemarche/www/dashboard_siaes/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
from django.views.generic.base import RedirectView

from lemarche.www.dashboard_siaes.views import (
SiaeEditActivitiesDeleteView,
SiaeEditActivitiesCreateView,
SiaeEditActivitiesDeleteView,
SiaeEditActivitiesEditView,
SiaeEditActivitiesView,
SiaeEditContactView,
SiaeEditInfoView,
SiaeEditLinksView,
SiaeEditOfferView,
SiaeEditSearchView,
SiaeSearchAdoptConfirmView,
SiaeSearchBySiretView,
SiaeUserDeleteView,
Expand All @@ -36,7 +35,11 @@
name="siae_edit",
),
path("contact/", SiaeEditContactView.as_view(), name="siae_edit_contact"),
path("recherche/", SiaeEditSearchView.as_view(), name="siae_edit_search"),
path(
"recherche/",
RedirectView.as_view(pattern_name="dashboard_siaes:siae_edit_activities", permanent=False),
name="siae_edit_search",
),
path("activites/", SiaeEditActivitiesView.as_view(), name="siae_edit_activities"),
path("activites/creer", SiaeEditActivitiesCreateView.as_view(), name="siae_edit_activities_create"),
path(
Expand Down

0 comments on commit 71e5848

Please sign in to comment.