Add admin setting to change default Calendar view (Month / Week / Year)

Hi there :waving_hand:

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:

upcoming events default view:
  - /upcoming-events/month   (current default)
  - /upcoming-events/week
  - /upcoming-events/year

Why this matters

  • Weekly view is more practical for teaching timetables, shift patterns, and events-dense communities
  • Reduces repeated switching every time users visit the page
  • Improves UX parity with mobile calendar apps that default to Week view

Current workaround

Admins can force redirect to /upcoming-events/week (prior to upcoming-events/week/2025/10/27) with a Theme Component, but that:

  • is hacky
  • applies to everyone globally (hard to scope)
  • doesn’t give true admin UX control

Thank you! This would be a small change with a big usability improvement for event-focused communities :raising_hands:

2 Likes

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

Why not just an app.yml var?

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.

How about rather resolving generic urls, so you could use a custom link on the sidebar?

Right now these wouldn’t work:

/upcoming-events/day 
/upcoming-events/week 
/upcoming-events/month
/upcoming-events/year
1 Like

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?…

@yuriy can you add a site setting for this please? Should be easy.

4 Likes

@Ethsim2, you actually did :smiley:

The new setting Calendar upcoming events default view is available now. The changes were implemented in:

4 Likes