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
Keep Box-Shadow Direction Consistent While Rotating
HTML Forms - Are Name and Id Required
Pseudo Elements Breaking Justify-Content: Space-Between in Flexbox Layout
Overlapping CSS Flexbox Items in Safari
Conditionally-Rendering CSS in HTML Head
Cascading Style Sheets Use "Id" or "Class"
Pure CSS 3 Image Slider - Without JavaScript or Radio Inputs
Why Is 'Font-Family' Not Inherited in '<Button>' Tags Automatically
How to Include Glyphicons in Bootstrap 3
HTML 5 Input Type='Date' Disable Keyboard Input
Using Cm/Mm on The CSS of a Web App That Replicates Paper Interaction Is a Good Practice
How to Allow Text to Wrap Inside a Word If Necessary
Is It Safe to Use Anchor to Submit Form
Equal Height Columns with Centered Content in Flexbox
Fixed Width Div on Right, Fill Remaining Width Div on Left
What's The Maximum Number of Simultaneous Connections a Browser Will Make