From 30848ae0808efa8ccc4744a16a53abca4d936be4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 2 Sep 2021 17:18:53 -0500 Subject: [PATCH] FE_BASE_PATH: use `trim` instead of `trimEnd` --- app/soapbox/build_config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/build_config.js b/app/soapbox/build_config.js index f69ecf9fe..53d05170f 100644 --- a/app/soapbox/build_config.js +++ b/app/soapbox/build_config.js @@ -4,7 +4,7 @@ * @module soapbox/build_config */ -const { trimEnd } = require('lodash'); +const { trim } = require('lodash'); const { BACKEND_URL, @@ -21,7 +21,7 @@ const sanitizeURL = url => { // Run Soapbox FE from a subdirectory. const getFeBasePath = () => { - return trimEnd(FE_BASE_PATH, '/') || '/'; + return `/${trim(FE_BASE_PATH, '/')}`; }; // JSON.parse/stringify is to emulate what @preval is doing and avoid any