Hello
I’m having the following code:
$lang = array(
'de' => 5,
'en' => 9,
'fr' => 10
);
$id = (isset($_COOKIE['Language'])) ? $id = $lang[$_COOKIE['Language']] : $lang['de'];
$url = $modx->makeUrl($id);
$modx->sendRedirect($url,0,'REDIRECT_REFRESH')
Please ignore/delete this post - just missed a semi-colon at the end.
//header('Location: ' .$url);
while header(’Location: ’ .$url); works just fine, $modx->sendRedirect($url,0,’REDIRECT_REFRESH’) doesn’t do anything at all - hope somebody has an idea what I’m missing here.
Thanks