Added slash removal to script.functions.sh for $idpurl