From 3bcadfa6866b020be62c70fb5cd11684439f01d7 Mon Sep 17 00:00:00 2001 From: Alexis Guyomar Date: Mon, 25 Nov 2024 18:34:57 +0100 Subject: [PATCH] feat: connect success update redirect to post update page --- .../admin/self-managed/UpdatePagePostUpdateController.php | 7 ++++++- views/templates/components/progress-tracker.html.twig | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/controllers/admin/self-managed/UpdatePagePostUpdateController.php b/controllers/admin/self-managed/UpdatePagePostUpdateController.php index e1a8e1251..ff9c6ca5e 100644 --- a/controllers/admin/self-managed/UpdatePagePostUpdateController.php +++ b/controllers/admin/self-managed/UpdatePagePostUpdateController.php @@ -27,12 +27,12 @@ namespace PrestaShop\Module\AutoUpgrade\Controller; +use PrestaShop\Module\AutoUpgrade\Router\Routes; use PrestaShop\Module\AutoUpgrade\Twig\UpdateSteps; class UpdatePagePostUpdateController extends AbstractPageWithStepController { const CURRENT_STEP = UpdateSteps::STEP_POST_UPDATE; - const CURRENT_PAGE = 'update'; protected function getPageTemplate(): string { @@ -44,6 +44,11 @@ protected function getStepTemplate(): string return self::CURRENT_STEP; } + protected function displayRouteInUrl(): ?string + { + return Routes::UPDATE_PAGE_POST_UPDATE; + } + /** * @return array * diff --git a/views/templates/components/progress-tracker.html.twig b/views/templates/components/progress-tracker.html.twig index 688f9bc29..02918e7b0 100644 --- a/views/templates/components/progress-tracker.html.twig +++ b/views/templates/components/progress-tracker.html.twig @@ -2,7 +2,7 @@ class="progress-tracker" data-component="progress-tracker" {% if successRoute is defined %} - data-sucess-route="{{ successRoute }}" + data-success-route="{{ successRoute }}" {% endif %} >