mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 11:44:42 +02:00
Fix issue processwire/processwire-issues#1479
This commit is contained in:
@@ -1907,7 +1907,8 @@ class PagesPathFinder extends Wire {
|
|||||||
if(strpos($path, '/') !== 0) $path = "/$path";
|
if(strpos($path, '/') !== 0) $path = "/$path";
|
||||||
$segment = $this->languageSegment($language);
|
$segment = $this->languageSegment($language);
|
||||||
if(!strlen($segment)) return $path;
|
if(!strlen($segment)) return $path;
|
||||||
if($path === "/$segment" || strpos($path, "/$segment/") === 0) return $path;
|
if($path === "/$segment" && $this->result['page']['id'] < 2) return $path;
|
||||||
|
if(strpos($path, "/$segment/") === 0) return $path;
|
||||||
return "/$segment$path";
|
return "/$segment$path";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user