diff --git a/src/util/constants.ts b/src/util/constants.ts index 8945936fadfaececc1838f726d6b80a51473b8f2..021c8087b6f2c383b6a8130f6b56863b31128da2 100644 --- a/src/util/constants.ts +++ b/src/util/constants.ts @@ -19,7 +19,7 @@ export const BACKENDURL = BACKEND_URL && /^http/.test(BACKEND_URL) : (() => { const url = new URL(window.location.href) const { protocol, hostname, pathname } = url - return `${protocol}//${hostname}${pathname}` + return `${protocol}//${hostname}${pathname.replace(/\/$/, '')}/${BACKEND_URL}` })() || 'http://localhost:3000/' export const MIN_REQ_EXPLAINER = `