christopherthielen / ui-router-extras

THIS PROJECT IS NO LONGER MAINTAINED -- Extras for UI-Router for AngularJS. Sticky States (a.k.a. parallel states), Deep State Redirect (for tab-like navigation), Future States (async state definition)
http://christopherthielen.github.io/ui-router-extras/
MIT License
917 stars 211 forks source link

fix(dsr): Fixes error when manually getting redirect for non-dsr states #320

Closed icdevin closed 8 years ago

icdevin commented 8 years ago

Remake of #306.

This is currently throwing a TypeError when passing a state name that has not been marked with dsr: true. In actuality we can simply returned undefined here (as the name of the function getRedirect might imply) as no redirect is defined for such states.