bugfix: links not respecting appRootPath
This commit is contained in:
parent
6ca887e79e
commit
0c2d7a7c66
|
@ -38,6 +38,7 @@ router
|
||||||
ctx.config = {
|
ctx.config = {
|
||||||
latestPackagesFolder: budibaseAppsDir(),
|
latestPackagesFolder: budibaseAppsDir(),
|
||||||
jwtSecret: env.JWT_SECRET,
|
jwtSecret: env.JWT_SECRET,
|
||||||
|
useAppRootPath: true,
|
||||||
}
|
}
|
||||||
ctx.isDev = env.NODE_ENV !== "production" && env.NODE_ENV !== "jest"
|
ctx.isDev = env.NODE_ENV !== "production" && env.NODE_ENV !== "jest"
|
||||||
await next()
|
await next()
|
||||||
|
|
|
@ -28,8 +28,7 @@ module.exports = async (config, appId, pageName, pkg) => {
|
||||||
await savePageJson(appPath, pageName, pkg)
|
await savePageJson(appPath, pageName, pkg)
|
||||||
}
|
}
|
||||||
|
|
||||||
const rootPath = (config, appname) =>
|
const rootPath = (config, appId) => (config.useAppRootPath ? `/${appId}` : "")
|
||||||
config.useAppRootPath ? `/${appname}` : ""
|
|
||||||
|
|
||||||
const copyClientLib = async (appPath, pageName) => {
|
const copyClientLib = async (appPath, pageName) => {
|
||||||
const sourcepath = require.resolve("@budibase/client")
|
const sourcepath = require.resolve("@budibase/client")
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
$: target = openInNewTab ? "_blank" : "_self"
|
$: target = openInNewTab ? "_blank" : "_self"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a href={url} bind:this={anchorElement} {target}>{text}</a>
|
<a href={_bb.relativeUrl(url)} bind:this={anchorElement} {target}>{text}</a>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.textDecoration {
|
.textDecoration {
|
||||||
|
|
Loading…
Reference in New Issue