This is a tricky one Dax which is a side effect of our pipeline.
We generate the bbcode for the dates here:
And cook it here:
So in the context of the cooked chunk of html the “download ics” is not aware of the actual post it is on (or event)
We also have a different pipeline for ics generation at:
So we need to decide from an engineering perspective if:
- We teach the “date cooking” how to re-route ics generation to Discourse Calendar.
OR
- We provide enough context to Discourse Local Dates, so it can independently generate the ics and keep the code fractured.
I am not sure what the correct thing is to do here, but I have prioritized it so the team can triage and sort it out.