@Sander You don't have to do that.

The angular routing system doesn't do a wildcard all at the end unless you 
ask it to with a *, so 'f1/f1Drivers' won't match 'f1/f1Drivers/10', the 
next route 'f1/f1Drivers/:id' will however...
Simple demo of that at: http://plnkr.co/edit/Ul1HSsgsfCLRxOh05b84?p=preview

(the about page, we define '/about' first, then '/about/:id' and all works 
well)...

@izanywhere

Which version of angular? And i ofc. assume you have loaded 
angular-route.js as well...

Your first example, with the '/:page/:child*' and '/:page' those two 
literally captures everything in your page...
Lets take the second one first... 

'/:page' will capture every route that has no '/' or one only in the 
beginning... this includes: '/foo', '/bar', '/boguslungus' etc... 

Now for the more interesting on in your case... 

'/:page/:child*' will capture everything with a single or more '/', (or two 
and more with the same exception as above)...
This means that it will capture: '/foo/bar', '/hocus/pocus' and 
also 'angular/ui', 'ex_F1/f1Drivers', now because of the * there at the 
end, it will also capture: '/foo/bar/baz' and  '/foo/bar/baz/taz' and in 
effect also 'ex_F1/f1Drivers/f1Driver/:id'
Which becomes your problem.

Try to create a plunker with your specific problem...
Here is two examples, one for 1.2.16 and one for 1.3.0-rc4

http://plnkr.co/edit/Ul1HSsgsfCLRxOh05b84?p=preview
http://plnkr.co/edit/ehGUVRiEzxUiFMrQYeDv?p=preview

-- 
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.

Reply via email to