Strip segments off configured URLs

When URLs are provided with additional `/` and segment paths, strip the configured URL to its base path by default.

This avoids confusion between API docs and the control panel itself, which provides the full URL with `/api/v2` to cut/paste.