[plugins] change way URL is chosen make it easier,