URI.mergePaths

string mergePaths(const URI base, const string refPath) @safe

Merge base path with a reference path per RFC 3986 §5.2.3.

Used during reference resolution to compute the target path when the reference path is relative. If the base has an authority and an empty path, the result begins with `/`.

Parameters

baseBase URI.
refPathReference path.

Returns

The merged path.