Improve resolving of parent URL, fixes #605