The issue concerns an undefined filename and summary in the .ics calendar file when using the “Add to calendar” option in the event preview modal, while the same function works correctly from the event’s 3-dot menu. dax identifies the problem as a side effect of the pipeline, where the ICS generation process fails to properly retrieve the event title in the preview context. sam explains the technical root cause and references a pull request (#35886) that unifies ICS generation, adds recurrence support, and improves timezone handling. Ric confirms the 3-dot menu option works. lindsey supports keeping the current behavior of adding the entire recurrence, as it’s more correct and easier to fix if needed. sam confirms the change will be merged, improving ICS functionality.
When clicking “Add to calendar” in the event preview modal (the one that appears after clicking on the event’s date), the downloaded .ics file is named undefined.ics and the event title inside the calendar file is also set to SUMMARY:undefined. However, downloading the calendar via the “Add to calendar” option from the event’s 3-dot menu works as expected, using the event’s title for both the filename and the calendar summary.
Steps to reproduce
Create or open a topic with an event
Click on the event date shown in the post to expand the preview modal:
Hi both to add some context, if you click on the three dots on an event there is a Add to Calendar option and this does work. I don’t know if that can help you look into this but seems it’s been solved elsewhere in the code.
edit: Of course @dax said this but I didn’t read properly!
I can understand the argument in either direction but I also prefer 1. I think it’s both more correct, and easier to “fix” if it wasn’t what the user wanted, because most calendar softwares make it quite easy to delete extra events with a single action (such as Google Calendar):