I Want HTML Link to .Ics File to Open in Calendar App When Clicked, Currently Opens File as Plain Text. Suggestions

I want HTML link to .ics file to open in calendar app when clicked, currently opens file as plain text. Suggestions?

If your site is built on Linux like mine you can simply add a line to your htaccess file to make it open as a download instead of a text page.

add this to your htaccess file:

AddType text/calendar .ics

Can an HTML link be made to open a datetime in a calendar?

I can't find anything related to time in the IANA Uniform Resource Identifier (URI) Schemes so I don't think this available out of the box. Only option would be to add a custom protocol to the client's computer if that's possible.

Edit: Calender access protocol might be useful for you but I don't think this is the behaviour you are describing.



Related Topics



Leave a reply



Submit