Since this component has been marked broken, I put together a replacement that works with current Discourse versions: Mobile Latest Homepage
It avoids the deprecated site.mobileView entirely, using window.matchMedia for viewport detection and Ember’s service:router for the redirect. It also remembers the user’s last choice between Latest and Categories for the duration of their session, so navigating back to the homepage respects their preference.
Thank you! I’ve merged the fix and updated the OP a little.
I have such a hard time getting around to maintaining my personal components these days so I really appreciate the PR.
As an aside, @Moin I’m going to try very hard to get to reviewing and testing the PRs you’ve submitted on some of my other components ASAP. I’m really sorry it’s been taking ages.