Injector: Improve detection of URL