From ff75928d48a684c7afc41727116f5968b0948eac Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Dec 2016 11:49:17 +0200 Subject: [PATCH] -Url ru - ua hot fix undo, got some problem with catalog/product --- CatalogUrlManager.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CatalogUrlManager.php b/CatalogUrlManager.php index f4871da..9262064 100755 --- a/CatalogUrlManager.php +++ b/CatalogUrlManager.php @@ -25,11 +25,12 @@ public function parseRequest($manager, $request) { /** - * Fast url fix + * Fast url fix. + * Did not helped with catalog products */ - if (!preg_match('@^\/(ru|ua).*@i', $request->url) && $request->url !== '/') { - throw new HttpException(404, 'Page not found'); - } +// if (!preg_match('@^\/(ru|ua).*@i', $request->url) && $request->url !== '/') { +// throw new HttpException(404, 'Page not found'); +// } $pathInfo = $request->getPathInfo(); $paths = explode('/', $pathInfo); -- libgit2 0.21.4