urest: simplify and correct navigation/relurl code