You can use star segments. This is documented here
Given this application:
App.Router.map(function() {
this.route('share', { path: 's/*linkPath' })
});
App.ShareRoute = Ember.Route.extend({
model: function(params) {
console.log(params.linkPath);
return params;
}
});
When a url begins with s/
and ends with anything. The remaining value will be setup in a variable called linkPath
.
For example:
URL => params.linkPath content
-------------------------------------------------------------
s/51b9dd49065f905411000000/1 => "51b9dd49065f905411000000/1"
s/hey/ho/lets/go => "hey/ho/lets/go"
So in your model hook, you can get the rest of the arguments, using params.linkPath
.
You can see this in action in that jsbin http://jsbin.com/OrEhAso/3/#/s/51b9dd490/51b9dd490/3. Open the console and you will se the string "51b9dd490/51b9dd490/3" logged.