Commit 1872e429 authored by Artem Malichev's avatar Artem Malichev

Minor fix.

parent 6315c205
......@@ -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(IA_URL . 'commerce/');
iaUtil::go_to($iaProduct->getInfo('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