mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): Fix UI urls when hosted behind a path prefix (#8198)
fixes #8061
This commit is contained in:
parent
66460f66b0
commit
5c078f1b3d
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue