For sites that rely heavily on the Upcoming Events page, many community members prefer a weekly view by default. Currently, /upcoming-events always loads the Month view first, even if a user prefers Week (or Day, Year).
Feature request
Add a simple admin site setting to configure which view /upcoming-events loads by default:
this is to hard code the default to Week, rather than Month. It’s simple, but not yet a site-setting - it lays the foundation for the more acceptable improvement
Ember code doesn’t read arbitrary env vars. Discourse only exposes declared site settings (config/settings.yml, client: true) to the client. That’s why you either:
add the setting in core (then set via app.yml), or
avoid settings and use a theme component redirect.
i’m “used to” upcoming events button that can’t be configured on the sidebar.
Furthermore, an admin setting could set the default of a user preference. Rather than all users being forced to set-up their own sidebar button/section, or accept a global section.
I hope i have changed the correct code in my PR, that we simply need to toggle what i changed based on a setting?…