mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-17 14:30:34 +08:00
fix(blocksAntd): Use relative paths with Link.
This commit is contained in:
parent
3981f8c60b
commit
f43762fc9e
@ -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>
|
||||
);
|
||||
|
@ -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) ? (
|
||||
|
@ -114,7 +114,7 @@ const PageHeaderMenu = ({
|
||||
content={{
|
||||
content: () => (
|
||||
<>
|
||||
<Link to={`/${homePageId}`}>
|
||||
<Link to={`${homePageId}`}>
|
||||
<img
|
||||
src={
|
||||
(properties.logo && properties.logo.src) ||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user