-
-
Notifications
You must be signed in to change notification settings - Fork 15
Add clickable links to description
jaredlt edited this page Jun 7, 2020
·
4 revisions
Both Google and Yahoo will automatically make links clickable BUT they will only do this once you are in VIEW mode. If you are in EDIT mode (ie. before you save the calendar event) the url will only show as text and not a hyperlink
- NB. Outlook.com and Office365 do not appear to work this way. Even if you pass in a full
<a href="...
into the body it does not appear to make the link clickable. If you know of a way to get this working please create an issue and let me know!
cal = AddToCalendar::URLs.new(
start_datetime: Time.new(2020,12,12,13,30,00,0),
title: "Christmas party!",
timezone: 'Europe/London',
description: "Visit http://www.example.com for more details" # this link will be clickable
)
cal.google_url
#=> "https://www.google.com/calendar/render?action=TEMPLATE&text=Christmas%20party%21&dates=20201212T133000/20201212T143000&ctz=Europe/London&details=Visit%20http%3A%2F%2Fwww.example.com%20for%20more%20details"
EDIT / pre-save mode (url is just text)
VIEW mode (url is clickable)