rescue exception in canonical url