I have a Calendar Event in Google Apps Script and I want to allow the user to open it by clicking an Anchor. I think I can the URL has to look like this: http://www.google.
The new version of Google Calendar has broken this. Here's how to fix it:
var mycal = 'username@m' var splitEventId = event.getId().split('@'); var eventUrl = "https://www.google.com/calendar/event?eid=" + Utilities.base64Encode(splitEventId[0] + " " + mycal).toString().replace('=','');