Fix URL resolution.

Test Plan: Tested it

Reviewers: ianfp

Differential Revision: https://phabricator.gumstix.com/D504
Remove old code.