$state.go should work fine, there is a issue on github that may help you,
maybe using option:
```
{ location : 'replace' }
```
Here follows the github issue URL that I've mentioned before:
https://github.com/angular-ui/ui-router/issues/64
On Fri, Oct 23, 2015, 5:47 PM Gaurav Arora <[email protected]> wrote:
> I have a search box on my main page. When the search button is clicked, I
> do a very simple $state.go('index.search', {q: $scope.term}); The
> index.state search is actually transitioned too but the URL in my browser
> does not change. I would expect the URL to change to /#/search?q=myterm I
> am using ui-router for routing.
>
> Am I doing something wrong? Should I be using $state.href instead? Or
> should I be using $location?
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
*Thiago Delgado*
Software Engineer
[email protected] | +55 13 99777-0972
https://github.com/thiagodelgado111
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.