From 71e58482860ffae3e84a03caf67561f7be3fb13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Reuiller?= Date: Wed, 20 Nov 2024 15:51:06 +0100 Subject: [PATCH] add a redirect in case the user has bookmarked the old link --- lemarche/www/dashboard_siaes/urls.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lemarche/www/dashboard_siaes/urls.py b/lemarche/www/dashboard_siaes/urls.py index 568adc582..9b1d83f8d 100644 --- a/lemarche/www/dashboard_siaes/urls.py +++ b/lemarche/www/dashboard_siaes/urls.py @@ -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, @@ -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(