Force Mobile Homepage

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.

Repository: GitHub - shortmort37/discourse-mobile-latest-homepage: A theme component that redirects mobile users to Latest instead of Categories on the homepage · GitHub

Tested on iPhone (lands on Latest), iPad landscape (two-column Categories+Latest unchanged), and desktop (unchanged).

2 Likes