Resolves #178 by using IDependencyInjector to get the URL properly