mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor-ui): fix axios baseUrl when hosted under a subfolder (#4336)
* fix(editor-ui): fix axios baseUrl when hosted under a subfolder * don't rewrite the favicon url twice * setup a base href for all relative urls * fix static urls
This commit is contained in:
committed by
GitHub
parent
6a37071350
commit
c2e9a03ac5
@@ -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 ?? '/',
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user