I have exactly the same problem as GSTAR had, but in my case Yii::app()->user->returnUrl is always pointing to index.php in my application.
And thus, login always redirects me to home page, not there, where I was.
I printed it out to myself in main.php layout file, so I see it on very page. No matter, where I go, it is always index.php, not route to the previously visited page (as supposed to be).
Anyone have any idea, what can be wrong?
I have deployed a fresh, auto-generated Yii application. I have changed it strongly ever since, but I did not mess up anything around redirects, referrers, login etc.
Cookies for sure works, because I can mark "remember me" in login page and don't have to login again, after restarting browser.
And thus, login always redirects me to home page, not there, where I was.
I printed it out to myself in main.php layout file, so I see it on very page. No matter, where I go, it is always index.php, not route to the previously visited page (as supposed to be).
Anyone have any idea, what can be wrong?
I have deployed a fresh, auto-generated Yii application. I have changed it strongly ever since, but I did not mess up anything around redirects, referrers, login etc.
Cookies for sure works, because I can mark "remember me" in login page and don't have to login again, after restarting browser.