Restored helpers getUrl and setUrl. Fixes #1996