ui-router-extras icon indicating copy to clipboard operation
ui-router-extras copied to clipboard

hyperlink not working

Open navinSing opened this issue 8 years ago • 3 comments

created a link of future state ; lets say : #/some2

when i give this url to someone else it doesn't work because future states were not loaded with $http; and thus moves to .otherwise route in ui-router.

How do i avoid this problem of redirecting it back to default route

navinSing avatar May 10 '16 08:05 navinSing

doesn't work because future states were not loaded with $http,, any suggestions ?

navinSing avatar May 15 '16 08:05 navinSing

Sorry I didn't respond sooner.

Future states should be intercepting the .otherwise() call and checking if the URL /some2 matches any of the pending future states.

Here's how it does it: https://github.com/christopherthielen/ui-router-extras/blob/master/src/future.js#L181-L184

Can you provide additional information about your problem?

christopherthielen avatar Aug 17 '16 18:08 christopherthielen

nice ! will try it out

navinSing avatar Aug 18 '16 02:08 navinSing