How to default to latest on mobile and categories+latest on desktop?

The compromise we reached on our forum was to

  • Set categories as the homepage
  • On mobile, make the logo link to /latest

That way the categories view is welcoming to potentially new visitors, while regular users are just 1 tap away from the ‘latest’ page.

The suggestion came from somewhere on meta, but I can’t find it right now.

The code we use (in the Mobile “Header” section of CSS/HTML customisation) is

<script type="text/discourse-plugin" version="0.4">
  api.changeWidgetSetting('home-logo', 'href', '/latest')
</script>

(on an unrelated note, can json uploads be enabled on meta, so we can share “exported” customisations for others to easily import?)

3 Likes