Permalink
Browse files

canonical url fix this time

  • Loading branch information...
1 parent 903aadc commit aa765a11f9069c0709324a05566f87a53c0b08e6 @charlesmarshall charlesmarshall committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/controller/LocalDealerController.php
View
2 lib/controller/LocalDealerController.php
@@ -34,14 +34,14 @@ protected function event_setup(){
if($dealer_lookup){
$obj->dealer_checked = $dealer_lookup->permalink;
$original_stack = $obj->cms_stack;
- $obj->canonical_url = "/". trim(implode("/", $original_stack), "/")."/";
foreach(array_reverse(explode("/", trim($dealer_lookup->permalink,"/"))) as $push) array_unshift($obj->cms_stack, $push);
$obj->content_lookup($obj);
//this might be one of those magic internal pages then...
if($obj->cms_throw_missing_content){
$obj->cms_throw_missing_content = false;
$obj->cms_stack = $original_stack;
$obj->content_lookup($obj);
+ $obj->canonical_url = "/". trim(implode("/", $original_stack), "/")."/";
}
}

0 comments on commit aa765a1

Please sign in to comment.