How to make GridView and ActiveForm (_form.php) to work independently

On a route /index.php?r=customer/index

A view index.php renders a GridView (with search enabled) and an ActiveForm (_form.php)

When user submits ActiveForm the url becomes


But when a user submits GridView the url becomes


Dependent from ActiveForm

If user resubmits ActiveForm the url becomes


Independent from GridView


GridView is not reseting previous querystring params. Upon GridView sumbission I actually want the following url to be generated


I want the forms to work either depent or independent from each other.

How do i do that?

The issue may be related to this: