Builds a static-friendly plugin asset URL: hostedPlugin/<id>/<segments...>.
Path separators stay literal /; each segment is encodeURIComponent'd so plain
static file servers (browser-only) resolve assets without needing Express :path(*) decoding.
. is dropped and .. is resolved within the plugin root (leading .. is ignored).
Builds a static-friendly plugin asset URL:
hostedPlugin/<id>/<segments...>. Path separators stay literal/; each segment isencodeURIComponent'd so plain static file servers (browser-only) resolve assets without needing Express:path(*)decoding..is dropped and..is resolved within the plugin root (leading..is ignored).