fix(blocksAntd): Use relative paths with Link.

This commit is contained in:
Gervwyk 2021-08-19 17:25:38 +02:00
parent 3981f8c60b
commit f43762fc9e
4 changed files with 4 additions and 5 deletions

View File

@ -24,7 +24,7 @@ import Icon from '../Icon/Icon';
const ItemLink = ({ link, children, className }) => {
if (type.isString(link.pageId)) {
return (
<Link to={`/${link.pageId}`} className={className}>
<Link to={`${link.pageId}`} className={className}>
{children}
</Link>
);

View File

@ -34,7 +34,7 @@ const getTitle = (id, properties, defaultTitle) =>
const MenuTitle = ({ id, makeCssClass, pageId, properties, url, linkStyle }) =>
type.isString(pageId) ? (
<Link to={`/${pageId}`} className={makeCssClass([linkStyle])}>
<Link to={`${pageId}`} className={makeCssClass([linkStyle])}>
{getTitle(id, properties, pageId)}
</Link>
) : type.isString(url) ? (

View File

@ -114,7 +114,7 @@ const PageHeaderMenu = ({
content={{
content: () => (
<>
<Link to={`/${homePageId}`}>
<Link to={`${homePageId}`}>
<img
src={
(properties.logo && properties.logo.src) ||

View File

@ -24,8 +24,7 @@ dotenv.config({ silent: true });
const buildDirectory = process.env.LOWDEFY_SERVER_BUILD_DIRECTORY || './.lowdefy/build';
const publicDirectory = process.env.LOWDEFY_SERVER_PUBLIC_DIRECTORY || defaultPublicDirectory;
const port = parseInt(process.env.LOWDEFY_SERVER_PORT) || 3000;
// const serverBasePath = process.env.LOWDEFY_SERVER_BASE_PATH;
const serverBasePath = '/base';
const serverBasePath = process.env.LOWDEFY_SERVER_BASE_PATH || '';
const server = getServer({
buildDirectory,