Redirect user when multiple locales in app

I want to redirect user to the some page. When locale is en, url look like:

When locale is uk, the URL look like:

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:

And 404 error. Can somebody help me?

make sure you have route setup for that. can you dump your urlManager rules here