Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

$location.search({ke:val}) redirected to previous url

$
0
0

@goldner wrote:

I'm trying to make my search bar hide, when the user press the back button.
The search bar can be open in all pages so I can't really add just one “search view”

I figured i need to add parameter to the url like this:
?search=1
when the user open the search bar , So I could track the action in the history.

Unfortunately, for some reasone When I use
$location.search({search: 1})
the user is being automatically redirected to the previus url instead

Could you please be awesome and help me solve this?

Thank you in advanced!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>