Skip to content

Commit

Permalink
Fix issue #78 with PagePathHistory where a cloned child of a renamed …
Browse files Browse the repository at this point in the history
…parent page could redirect to wrong item when accessed at old URL
  • Loading branch information
ryancramerdesign committed Nov 14, 2016
1 parent e0af12d commit 4b800ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wire/modules/PagePathHistory.module
Expand Up @@ -196,6 +196,7 @@ class PagePathHistory extends WireData implements Module {
/** @var Page $page */
$page = $event->arguments[0];
if($page->template == 'admin') return;
if($this->wire('pages')->cloning) return;
$age = time() - $page->created;
if($age < self::minimumAge) return;
$languages = $this->getLanguages();
Expand Down

0 comments on commit 4b800ad

Please sign in to comment.