Returning matched string instead of undefined when the url is not an app resource.
Version 4.2.1