How to ignore route param in location


I am navigating to next page as:


current view has URL parameter as:;

now when I navigate, it has XXX/YYYY/"?a=true;

I have tried :

delete $routeParams.a;


delete $location.$$search.a;

But it doesn’t work. It doesn’t remove the parameter.

How to set routeparam when navigating to a different page?


Following change fixed my issue :

 delete $location.$$search.a;

 config: {           
            reloadOnSearch: false

Answered By – Furqan Misarwala

Answer Checked By – Gilberto Lyons (AngularFixing Admin)

Leave a Reply

Your email address will not be published.