I want to redirect user to the some page. When locale is en, url look like:
http://example.com/profile/vacancy
When locale is uk, the URL look like:
http://example.com/uk/profile/vacancy
I try to redirect:
if (strpos($urlReferrer, 'job/vacancy')) {
$response['redirectToMain'] = 1;
$response['homePageUrl'] = Yii::app()->createAbsoluteUrl('/profile/vacancy');
}
When locale is en all works fine, but when locale is uk, I got this:
http://example.com/profile/vacancy/language/uk
And 404 error. Can somebody help me?