I’ve got a URL string which I retrieved using Yii::app()->user->returnUrl, but I need this to be in the form of something like a CHttpRequest where I can call something like getQueryString() (basically i only want the route, not the full URL), any help greatly appreciated!
Sorry I made a slight error in my initial post, the URL im retrieving is Yii::app()->request->getUrlReferrer() which returns a full url string. I am basically looking to grab the route of the previous URL.