Do you need the full url? Why not just use the relative path.