fix(editor-ui): fix BASE_URL replacement on windows (#4202)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-09-27 07:02:41 +02:00
committed by GitHub
parent b809a2a074
commit 5f0c65690b
6 changed files with 6 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ function getTemplatesRedirect(store: Store<IRootState>) {
const router = new Router({
mode: 'history',
// @ts-ignore
base: window.BASE_PATH === '/%BASE_PATH%/' ? '/' : window.BASE_PATH,
base: window.BASE_PATH === '/{{BASE_PATH}}/' ? '/' : window.BASE_PATH,
scrollBehavior(to, from, savedPosition) {
// saved position == null means the page is NOT visited from history (back button)
if (savedPosition === null && to.name === VIEWS.TEMPLATES && to.meta) {