Changed location method from path to url