You specify state references with dots and not slashes. Then you specify the state parameters later. So, it would be something like
If you have properly specified your states as substates, which is hard to tell as you have only provided part of your actual code. Personally, I define all four states down the line, to stick with foo and bar for my case (because I don't understand your routing setup from the fragment)
state: foo (url '/foo')
state: foo.detail (url '/:fooID')
state: foo.detail.bar (url '/bar')
state: foo.detail.bar.detail (url '/:barID')
with all the associated other stuff in your .state stack.
Then to display the actual bar of foo, I'd go to /foo/1/bar/2, which is ui-sref="foo.detail.bar.detail({fooID: 1, barID: 2})"
Also, I usually pluralize things (foos and bars).
Then to display all foos and all bars of a specific foo, that's defined on the foo and foo.detail.bar states (index vs show in rails routing terms). If that doesn't make sense, just declare foo and foo.detail.bar to be abstract states and you won't be able to transition in there.
e