Add special case when relative link should be joined at root