Commit 0bb6f66c authored by Artem Malichev's avatar Artem Malichev

Permanent redirect to the valid URL

parent 232ab765
......@@ -77,7 +77,7 @@ if (iaView::REQUEST_HTML == $iaView->getRequestType()) {
if ($categorySlug != $category['slug']) {
// permanent redirect to the valid URL
header('HTTP/1.1 301');
iaUtil::go_to($iaProduct->getUrl($product));
iaUtil::go_to(IA_URL . 'commerce/');
}
$iaProduct->incrementViewsCounter($product['id'], 'num_viewed');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment