Skip to content

Commit

Permalink
fix(editor): Fix UI urls when hosted behind a path prefix
Browse files Browse the repository at this point in the history
fixes #8061
  • Loading branch information
netroy committed Jan 2, 2024
1 parent 17a4e2e commit 61c282e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/editor-ui/src/stores/n8nRoot.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 61c282e

Please sign in to comment.