How do I return to the same admin page after edit

Hello,

If I am on page 4 and edit a record and then save it, I have to start from page 1 again.

I want to redirect to the same page on the admin.php where I clicked the edit button.

Thanks

Frank

Idea,

get the page id with each of the item that is going to edit

store it in the form

and if saved/updated, set pager to old page

In controller Just Redirect on URL and Just pass Pageid=? which currently editing

This is my problem too,

We are using ajax in CGridView. So, how can we redirect to early page when edit sucessfully? we want to using ajax when loading and no parameter on url.

Thanks

Not sure how to grab the pageId. Would I use $_GET?

Can anyone give me an example please?

Thanks

Frank

I do not see the _page variable in my url.

How do I grab this when I edit a record from GridView?

Thanks

Still having an issue. Can anyone help?

Thanks