12583 - add query string with tracking in urls when redirecting category with 1 products
This commit is contained in:
parent
7cdb41edbd
commit
ce5f1377bc
@ -18,6 +18,11 @@ class CategoryController extends CategoryControllerCore
|
||||
}
|
||||
$product = reset($this->cat_products);
|
||||
$link = Context::getContext()->link->getProductLink($product);
|
||||
|
||||
if (isset($_SERVER['REDIRECT_QUERY_STRING'])) {
|
||||
$link .= '?'.$_SERVER['REDIRECT_QUERY_STRING'];
|
||||
}
|
||||
|
||||
Tools::redirect($link);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user