Skip to content
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

Open
tommarshall opened this issue Aug 14, 2017 · 10 comments
Open

.ics file fails to download for iCal and Outlook links #22

tommarshall opened this issue Aug 14, 2017 · 10 comments

Comments

@tommarshall
Copy link

tommarshall commented Aug 14, 2017

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

@tommarshall
Copy link
Author

tommarshall commented Aug 14, 2017

'Copy link address' and pasting that into a fresh tab, does work however.

Removing the target="_blank" attribute from the <a> tag appears to resolve the issue, though I don't know if that breaks the links in other browsers.

@julienV
Copy link

julienV commented Jul 31, 2018

@damianvila
Copy link

Better to replace the target="_blank" with a "download" parameter.

@julienV
Copy link

julienV commented Aug 13, 2018

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

@damianvila
Copy link

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/
The "Can I use" site is a bit outdated on that feature.

@LittleDogFido
Copy link

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.

@julienV
Copy link

julienV commented May 20, 2019

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...
just include either ouical.js, or the minified version

@julienV
Copy link

julienV commented May 20, 2019

@LittleDogFido
Copy link

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.

@julienV
Copy link

julienV commented May 21, 2019

not sure, my goal was just to fix the iCal download issue, but i can't help with IE as i am on linux.

lindseyneedham added a commit to lindseyneedham/NationBuilder that referenced this issue May 22, 2019
Replacing target="_blank" with a "download" parameter, based on the recommendation here: carlsednaoui/add-to-calendar-buttons#22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants