CAL-560 HTTP status 404 when clicking on Link on invitation email of event on calendar of space

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