it's possible to specify to $location.search to send parameters with slashes in url ?
Here is my state:
.state('home/room', {
url: '/:home_id/:room_id',
templateUrl: 'home/layout.html'
});
Using links it works perfectly:
<a ui-sref="home/room({home_id:20, folder_id: 608})"> // I get url: "/20/608"
Is it possible to do the same thing with $location.path ?
I tried this but it doesn't work.
$location.path("home/room({home_id:20, room_id: 608})")
$location.search({home_id: 20, room_id: 608});
I get /?home_id=20&room_id=608
But I would like /20/608
I'm trying to avoid using regex. Any idea ? Thanks