artch/angular-route-segment

Controllers are loaded that have same prefix

levipage opened this issue · 1 comments

Is this product still maintained.. I've invested quite a lot of time into using it and it seems to have a lot of unanswered issues over the past several months?

I noticed that if a route starts with the same text as another route, any other route with the same prefix gets loaded as well even if the second route is not "within" the first route.

For instance... I define a route that has a path of '/'.
.when('/', 'home')

But I want to actually start the user off at the login which has nothing to do with the first route:
.when('/login/', 'login')

However the controller for the first route gets loaded because it starts with the same route prefix.

artch commented

Could you please create a test case reproducing this using jsFiddle, Plunker or something?