Merge remote-tracking branch 'origin/ticket/r16108-test-sponsor'
This commit is contained in:
commit
713c316914
@ -351,12 +351,14 @@ class FrontController extends FrontControllerCore
|
||||
$excludedKey = array('isolang', 'id_lang');
|
||||
foreach($_GET as $key => $value) {
|
||||
if(!in_array($key, $excludedKey)) {
|
||||
$params .= ($params == '' ? '?' : '&').$key.'='.$value;
|
||||
$params .= ($params == '' ? '?' : '&').$key.'='.rawurlencode($value);
|
||||
}
|
||||
}
|
||||
|
||||
if(defined('_PS_MODE_DEV_') && _PS_MODE_DEV_ && $_SERVER['REQUEST_URI'] != __PS_BASE_URI__) {
|
||||
die('[Debug] This page has moved<br />Please use the following URL instead: <a href="'.$canonicalURL.$params.'">'.$canonicalURL.$params.'</a>');
|
||||
}
|
||||
|
||||
header('HTTP/1.0 301 Moved');
|
||||
Tools::redirectLink($canonicalURL.$params);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user