Skip to content

Commit 82154d9

Browse files
authored
Merge pull request #90 from kamilszewczyk/patch-1
Fix for product urls with trailing slashes
2 parents 52e35b6 + 31d3776 commit 82154d9

File tree

1 file changed

+3
-3
lines changed
  • app/code/community/Creare/CreareSeoCore/Helper

1 file changed

+3
-3
lines changed

app/code/community/Creare/CreareSeoCore/Helper/Data.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ public function getDiscontinuedProductUrl($product)
1717
$cats = $product->getCategoryIds();
1818
if (is_array($cats) && count($cats) > 1) {
1919
$cat = Mage::getModel('catalog/category')->load( $cats[0] );
20-
return $cat->getUrlPath();
20+
return Mage::getUrl($cat->getUrlPath());
2121
} else {
2222
$cat = Mage::getModel('catalog/category')->load( $cats );
23-
return $cat->getUrlPath();
23+
return Mage::getUrl($cat->getUrlPath());
2424
}
2525
}
2626

@@ -201,4 +201,4 @@ public function getProductStartingprice($product)
201201
return $product->getFinalPrice();
202202
}
203203

204-
}
204+
}

0 commit comments

Comments
 (0)