take into account relative root path when generating captcha url