Post

anyone know why the best option for "add to calendar" on a laptop/desktop is to download the ics file? we have mailto:, which no one uses, but no ical:// ?!

The correct way to do this is setting the right mimetype. If you see a URI scheme for this type of thing they usually didn't know what they were doing. Support for this goes way back. Add a .ics extension just in case (in url or content-disposition header)

0 reposts2 likes

I don't know what I'm doing! Is there a blog or guide about how to do this the right way? Or just a website I can copy off of?

How are you hosting this event? Inside some kind of framework? Just hosting an .ics file somewhere might already do the right thing automatically. If you have a url I can verify it for you

Well the endpoint that generates the ics just needs 2 headers to do this correctly. Will share after I put my kid in bed!