cleans up GH-relative url code