From 61c282e46c13a858e3f557693de9eb7d3518f3ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 2 Jan 2024 14:14:23 +0100 Subject: [PATCH] fix(editor): Fix UI urls when hosted behind a path prefix fixes #8061 --- packages/editor-ui/src/stores/n8nRoot.store.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor-ui/src/stores/n8nRoot.store.ts b/packages/editor-ui/src/stores/n8nRoot.store.ts index af7b13b8ec2f9..5099da91b98a5 100644 --- a/packages/editor-ui/src/stores/n8nRoot.store.ts +++ b/packages/editor-ui/src/stores/n8nRoot.store.ts @@ -7,8 +7,7 @@ const { VUE_APP_URL_BASE_API } = import.meta.env; export const useRootStore = defineStore(STORES.ROOT, { state: (): RootState => ({ - baseUrl: - VUE_APP_URL_BASE_API ?? (window.BASE_PATH === '/{{BASE_PATH}}/' ? '/' : window.BASE_PATH), + baseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH, restEndpoint: !window.REST_ENDPOINT || window.REST_ENDPOINT === '{{REST_ENDPOINT}}' ? 'rest'