Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

I have an application that uses angularjs and ui-router for routing.

One of my urls is: http://www.nadpco.com/#/NewsDetails?cat=4&id=2871

In some another where, my url will be like this:

http://www.nadpco.com/#/NewsDetails?cat=4&id=2871

Note that & is added to second url.

Now I want when user clicks the second url, ui-router, route to correct url.

How can I do this.

Thanks.

share|improve this question
    
in some another means.? – V P Jul 27 at 9:27
    
this is already being done when we click on both the urls, same page is being displayed..then where is the problem – Ashish_B Jul 27 at 9:33
    
Please copy second url and paste it in browser address bar. – Tavousi Jul 27 at 9:42

1 Answer 1

You can use $location service to do so.

Refer to link: https://docs.angularjs.org/api/ng/service/$location

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.