From bf07fb3505feeb36ae98741faad00201f09bec84 Mon Sep 17 00:00:00 2001 From: Salcover Date: Fri, 27 Dec 2019 12:46:07 +0800 Subject: [PATCH] fix for routes on the front side, made for Dekra (cherry picked from commit 8a6bc09) --- src/Listener/MelisFrontSEODispatchRouterRegularUrlListener.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Listener/MelisFrontSEODispatchRouterRegularUrlListener.php b/src/Listener/MelisFrontSEODispatchRouterRegularUrlListener.php index f4a9623..0a11515 100644 --- a/src/Listener/MelisFrontSEODispatchRouterRegularUrlListener.php +++ b/src/Listener/MelisFrontSEODispatchRouterRegularUrlListener.php @@ -111,7 +111,8 @@ function(MvcEvent $e){ $routingResult['301_type'] = 'seoURL'; // No SEO, then try regular Page Url - if ($routingResult['301'] == null) + if ($routingResult['301'] == null && + (empty($routingResult['norewrite']) || !$routingResult['norewrite'])) { $routingResult['301'] = $this->redirectPageMelisURL($e, $idpage); if ($routingResult['301'] != null)