I would like to display the link to the Calendar Event. I get the link from the Google Calendar API as part of the Event object — htmlLink property.
The problem happens when the user meets the following conditions:
- They are logged in via multiple Google accounts (say, Private and Work)
- The primary account does not match the one who has access to the Calendar in question
What happens next:
- When the mentioned user clicks the link, they are taken to the Calendar of their primary account instead of the calendar that is associated with the event. This naturally results in permissions error.
- When the user copies the URL, then goes to their calendar, then switches their account to the secondary account and insert the URL manually, then it works.
Do you guys know of a user-friendly way to mitigate this problem?