prevent truncation of relative urls, fixes #2105