Fix 404 error for events and apps