itdoxy-lab/web_src/js/utils/url.js

4 lines
99 B
JavaScript

export function pathEscapeSegments(s) {
return s.split('/').map(encodeURIComponent).join('/');
}