X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/38d27e9783f7f760cee84cc225e86144069848c4..ced486022308d18befcb1c83676c7d34ecc85f9d:/src/common/url.ts diff --git a/src/common/url.ts b/src/common/url.ts index 6d66778ad3..db12cb8ea8 100644 --- a/src/common/url.ts +++ b/src/common/url.ts @@ -13,7 +13,7 @@ export function normalizeURLPath(url: string) { const u = new URL(url); u.pathname = u.pathname.replace(/\/\//, '/'); if (u.pathname[u.pathname.length - 1] === '/') { - u.pathname = u.pathname.substr(0, u.pathname.length - 1); + u.pathname = u.pathname.substring(0, u.pathname.length - 1); } return u.toString(); }