aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/utils/url.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/utils/url.js')
-rw-r--r--web_src/js/utils/url.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/js/utils/url.js b/web_src/js/utils/url.js
new file mode 100644
index 0000000000..a40737ca6f
--- /dev/null
+++ b/web_src/js/utils/url.js
@@ -0,0 +1,3 @@
+export function pathEscapeSegments(s) {
+ return s.split('/').map(encodeURIComponent).join('/');
+}