Fix handling of URLs, follow-up on d5831c31

Previous `inline` implementation was appending `path` no matter what, messing absolute URLs. This a proposed fix.