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 %} >