From 8f793bbe914a5389c76a82aa50dd013cef2cca1b Mon Sep 17 00:00:00 2001 From: MeesoPost <100311542+MeesoPost@users.noreply.github.com> Date: Fri, 11 Oct 2024 13:59:03 +0200 Subject: [PATCH] refactor: :art: add homepage URL to config and use it in Link --- .../src/app/[locale]/(openFormsLayout)/layout.tsx | 4 ++-- apps/pdc-frontend/src/app/[locale]/(rootLayout)/layout.tsx | 4 ++-- .../[locale]/(nestedNavLayout)/article/[articleSlug]/page.tsx | 3 ++- .../src/app/[locale]/(nestedNavLayout)/not-found.tsx | 3 ++- .../app/[locale]/(nestedNavLayout)/theme/[themeSlug]/page.tsx | 3 ++- apps/vth-frontend/src/app/[locale]/(rootLayout)/layout.tsx | 3 ++- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/pdc-frontend/src/app/[locale]/(openFormsLayout)/layout.tsx b/apps/pdc-frontend/src/app/[locale]/(openFormsLayout)/layout.tsx index 856b8ca2..44a674f9 100644 --- a/apps/pdc-frontend/src/app/[locale]/(openFormsLayout)/layout.tsx +++ b/apps/pdc-frontend/src/app/[locale]/(openFormsLayout)/layout.tsx @@ -31,7 +31,7 @@ import { Main } from '@/components/Main'; import { SearchBar } from '@/components/SearchBar'; import 'react-loading-skeleton/dist/skeleton.css'; import { GET_OPEN_FORMS_TEMPLATE } from '@/query'; -import { buildAlternateLinks, createStrapiURL, fetchData } from '@/util'; +import { buildAlternateLinks, config, createStrapiURL, fetchData } from '@/util'; import { ComponentComponentsUtrechtNavigation, GetTemplateDataQuery } from '../../../../gql/graphql'; import { getLiveSuggestions, onSearchSubmitAction } from '../../actions'; import { useTranslation } from '../../i18n/index'; @@ -179,7 +179,7 @@ const RootLayout = async ({ children, params: { locale } }: LayoutProps) => {
{
{
{
{
{