CS-5899 [Calendar] Invalid URL in invitation mail for a space's event

Fix description: Only update url in case of intranet context in function getCalendarURL.