Skip to content
Snippets Groups Projects
Commit bcfbee5f authored by Moritz Stückler's avatar Moritz Stückler :cowboy:
Browse files

fix: header links

parent 83996e49
No related branches found
No related tags found
No related merge requests found
Pipeline #9880 passed
......@@ -48,7 +48,7 @@ export const HeaderWrapper: React.FC<Props> = ({
className="w-6 sm:w-5 h-6 sm:h-5 sm:mr-2 mb-1 sm:mb-0"
/>
),
...(baseUrl ? { target: baseUrl + item.target } : {}),
...(baseUrl && baseUrl != "/" ? { target: baseUrl + item.target } : {}),
};
})
.sort((a, b) => a.order - b.order);
......@@ -85,6 +85,7 @@ export const HeaderWrapper: React.FC<Props> = ({
light,
};
return (
<Header
{...commonProps}
......
......@@ -52,6 +52,7 @@ const currentPoi = (
localeFromUrl + "/" + poi?.split("/").at(-1) || ""
)
)?.data;
---
<BaseLayout
......@@ -60,6 +61,7 @@ const currentPoi = (
bodyClasses="fc-h-full fc-flex fc-flex-col"
>
<DataHeaderWrapper
baseUrl={baseUrl === "" ? "/" : baseUrl}
menuItems={menuItems}
compact
light
......@@ -67,7 +69,6 @@ const currentPoi = (
backgroundImageClasses="fc-bg-[url('/images/illustrations/map-pattern.svg')] fc-bg-cover fc-bg-no-repeat"
reactClasses="!fc-absolute lg:!fc-static"
itemsAlwaysLight={true}
baseUrl={baseUrl}
/>
<main class="fc-h-64 fc-basis-full fc-relative">
<FabCityMap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment