Maybe you should try getURL() instead of geturl().