fix redirect loop bug
fix url
Merge pull request #454 from dimagi/redirect-fix

fix redirect loop bug