CWebUser getReturnUrl

It would be really nice if the user->getReturnUrl() method took into account whether “showScriptName” was true/false in the ©UrlManager. 

When showScriptName is false, user->getReturnUrl still returns the scriptUrl as a default, which is no good if you don't want "index.php" (or whatever) visible to your users.

Hope that made sense!  Maybe I'm missing a small config change which would fix this?


Check your $_SERVER['REQUEST_URI'] and see if it is set. If not, Yii has to reconstruct it by itself.

It is set, and has in it the controller and action string as expected (in my case /account/login ).

What does this tell you?