Could add a helper `ensureLeadingSlash`