Can we params in array here and pass them to getlocalUrl()?