Loading a model at application level

I’m building an app for keeping data about school classes. When the user begins to use the app, they’ll select the “class” that they will be working with. Most subsequent routes will then use this selected “class” they have chosen to use. As a default, the first appropriate class is set as the selected class.

I’m storing the selected “class” as a property on the application controller. This works fine through normal usage. However, when the page is refreshed, it seems the current route processed before the application controller.

Ideally, I’d like to keep the url clean and not have the class’s id as a part of it. Is there another way I can achieve this?

Thanks!

cookies / other local storage methods.