fix: make default config.yml absolute
This commit is contained in:
parent
edab0de662
commit
8fd884657b
@ -52,7 +52,11 @@ function getConfigUrl() {
|
|||||||
console.info(`[StaticCMS] Using config file path: "${configLinkEl.href}"`);
|
console.info(`[StaticCMS] Using config file path: "${configLinkEl.href}"`);
|
||||||
return configLinkEl.href;
|
return configLinkEl.href;
|
||||||
}
|
}
|
||||||
return 'config.yml';
|
|
||||||
|
return `${window.location.origin}${window.location.pathname.slice(
|
||||||
|
0,
|
||||||
|
window.location.pathname.lastIndexOf('/'),
|
||||||
|
)}/config.yml`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const setFieldDefaults =
|
const setFieldDefaults =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user