1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 03:34:33 +02:00

Update PageFinder to allow partial text matching in default language page paths in multi-language environment

This commit is contained in:
Ryan Cramer
2022-04-25 11:01:48 -04:00
parent 662cf5eee5
commit 6001475a3c

View File

@@ -2560,8 +2560,7 @@ class PageFinder extends Wire {
$langNames = null; $langNames = null;
} }
if($modules->isInstalled('PagePaths') && !$langNames) { if($modules->isInstalled('PagePaths')) {
// @todo add support to PagePaths module for LanguageSupportPageNames
$pagePaths = $modules->get('PagePaths'); $pagePaths = $modules->get('PagePaths');
/** @var PagePaths $pagePaths */ /** @var PagePaths $pagePaths */
$pagePaths->getMatchQuery($query, $selector); $pagePaths->getMatchQuery($query, $selector);