Skip to content

Commit bb3d1e9

Browse files
authored
Additional fix for 404 error on the blog search page
1 parent 7db5edc commit bb3d1e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Model/Url.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ public function getUrlPath($identifier, $controllerName)
240240
}
241241

242242
$path = $this->addUrlSufix($path, $controllerName);
243-
$path = $this->trimSlash($path);
243+
if (self::CONTROLLER_SEARCH != $controllerName) {
244+
$path = $this->trimSlash($path);
245+
}
244246

245247
return $path;
246248
}

0 commit comments

Comments
 (0)