Fix handling of controller URLs.