How to create a back button with url parameters?

I try to create a back button using $ionicNavBarDelegate.back() in my application, but it’s cannot back with url parameters.

For example:

/demo/services?query=exam

when I use $ionicNavBarDelegate.back() , the page redirect to /domo/services , the url parameter has gone.

How to use $inoicNavBarDelegate.back() with parameters, or how to create a back button with parameters.

Hi @kenticny,

I think, On click on back button you want history back. if yes…
use following code-

navigator.app.backHistory(); 

Hi, @shashikant ,
I will try with your code,
thanks for you help.