ported old changes to b2share-next: relative urls