Problem In Urlmanager With Redirect

I’m working with modules and urlManager, and must keep a URL parameter when I use redirect. I have the following format:


siteDotcom/parameter/module/controller/.......

The problem is when I try to access a controller that only allows authenticated access. In this case, when I’m not logged in, Yii directs me to the path defined in loginUrl. Then, I lose the url parameter. He directs me to:


siteDotcom/authenticate_module/controller/.......

but I need to be directed to:


siteDotCom/parameter/authenticate_module/controller/.......

Is there any way to keep the parameter after directing?

How does your redirect() after login looks like?

Never mind, i solved otherwise. Sorry to bother.

Thanks anyway.