Code adjustment of CustomUrlProvider class.