I'm building a web app where the home for logged in users will be very feature rich (a dashboard) but the non-logged in version is very basic (not much more than some copy and a log in form)
I've started implementing this as a single view with a chunky 'if' in it. If you're not logged, you get public_homepage.html. If you are logged in then I load all kinds of stuff and you get dashboard.html. You're always at / though.
I'm getting a nagging feeling that this is a bit hacky, and these things might deserve their own routes and views, but I'm not sure what this is based on. I guess I'd protect the /dashboard route, like most of the others, and send people back to the public home on /, and once you log in you get directed (by default) to /dashboard
What do you tend to do here? What are the patterns and factors you think about?