About redirect and yii-user

[color="#006400"]/* Moved to Extensions */[/color]

I’ve got a almost ready project, besides all it has a user option that has Profile Edit, Messages, and smth else. So when I acces /user/profile it asks for login and then redirects to the Profile Edit, but that doesn’t work when I access /user/mail.

I included trace like in method described here and at /user/profile "returnUrl=/user/profile" and at /user/mail it is "returnUrl=index.php".

I gues the method is right, the problem should be in other code.

I would appriciate any kind of help.

P.S. I’m not a yii pro, just sarted working with it.

I don’t think that “/usr/mail” is included in yii-user module …

Is that your original controller added to the module?

No it’s not original, same for /profile

Well, it’s strange.

I don’t see any “mail” action or “mail” controller in yii-user …

Try softafk’s code. It works like a charm.

You need to modify yii’user 's last visit method… it will get a little buggy if you have modified your url manager before.

Also, you gotta make sure you are using yii-user module or Yii-user-management?