Patch getUrl function

getUrl patched