-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.ics file fails to download for iCal and Outlook links #22
Comments
'Copy link address' and pasting that into a fresh tab, does work however. Removing the |
Better to replace the target="_blank" with a "download" parameter. |
looks like it's not supported on safari, and only recently on other browsers. I could put it in addition of the target attribute though |
Afaik, it's supported as of Safari 10.3 on iOS and Safari 10.1 on MacOS: https://webkit.org/blog/7477/new-web-features-in-safari-10-1/ |
Perhaps I'm doing something wrong(I am relatively new to all of this) but I notice no changes after adding the gulpfile.js and ouimincal.js. The download attribute seems to be enough to get around this on Chrome, but not IE. When I add both the gulpfile.js/outmincal.js after changing target_blank to download, it ceases to work again. |
don't include the gulpfile.js in your html code, it's just there for development to generate the ouical.min.js from the ouical.js file... |
@LittleDogFido i updated my PR, the direct ouical file link is here: https://raw.githubusercontent.com/carlsednaoui/add-to-calendar-buttons/683bdf8e1a51ce5f5b84f1c1096a245bf22fc219/ouical.js |
Thanks so much for your reply and the updated file. Even while I was doing it it was unclear to me why they would all be necessary. I still can't seem to get Outlook to work on Internet Explorer however, which is what I thought this would solve based on your comment in that issue thread. Perhaps there is another unrelated issue on my end preventing the fix from working. |
not sure, my goal was just to fix the iCal download issue, but i can't help with IE as i am on linux. |
Replacing target="_blank" with a "download" parameter, based on the recommendation here: carlsednaoui/add-to-calendar-buttons#22
Clicking the 'iCal Calendar' or 'Outlook Calendar' links does not download the .ics file. The browser flashes, but no file is downloaded, and no new tab is opened.
Browser: Chrome 60.0.3112.90 (Official Build) (64-bit) OS X
The text was updated successfully, but these errors were encountered: