mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 03:34:33 +02:00
Fix issue #78 with PagePathHistory where a cloned child of a renamed parent page could redirect to wrong item when accessed at old URL
This commit is contained in:
@@ -196,6 +196,7 @@ class PagePathHistory extends WireData implements Module {
|
|||||||
/** @var Page $page */
|
/** @var Page $page */
|
||||||
$page = $event->arguments[0];
|
$page = $event->arguments[0];
|
||||||
if($page->template == 'admin') return;
|
if($page->template == 'admin') return;
|
||||||
|
if($this->wire('pages')->cloning) return;
|
||||||
$age = time() - $page->created;
|
$age = time() - $page->created;
|
||||||
if($age < self::minimumAge) return;
|
if($age < self::minimumAge) return;
|
||||||
$languages = $this->getLanguages();
|
$languages = $this->getLanguages();
|
||||||
|
Reference in New Issue
Block a user