I'll try to summarize succinctly. In the old router we had /messges/:folder
where folder is passed into a find query in connectOutlets. Folder is a simple
string like: sent
/received
/read
etc. We struggled to get this to work in the
new router.
We setup one route as /messages/:folder
. We implementing the model hook to take
the folder and pass it to Email.find(folder: params.folder)
. This worked. In
our hbs we used {{linkTo emails "inbox"}}
. This only worked in some cases.
Let me explain why. The model hook is only called when deserialize is called.