Since the latest Angular2 version (2.0.0-beta.14) it is possible to have query parameters that contain multiple slashes, like /foo/bar.
This works great, however whe
If you use Angular 7 or higher, and the other answers don't work out for you, you might have some problems with your paths.
It works if you define a path with multiple slashes. However, when working with translations, I got an error.
[{
path: 'parentX',
children: [
{
path: 'y/z'
component: AnyComponent
}
]
}]
All credit goes to Dabbas' question and answer
It took me a while to land on his solution, which is why I added it here.
[{
path: 'parentX',
children: [
{
path: 'y',
children: [
{
path: 'z',
component: AnyComponent
}
]
}
]
}]