Fix routing to activity page and correct calendar events by activity.