MDL-44552 Events: Fixed wrong id returned in get_url