get the current url rather than hard code production url