added permalink handling for event ids and dates