get the url after the saveType may be changed
Merge pull request #121 from dimagi/fix-url

get the url after the saveType may be changed