diff --git a/lib/graphql/Fragments/MyPages/AccountPage.graphql b/lib/graphql/Fragments/MyPages/AccountPage.graphql deleted file mode 100644 index bf7e68996..000000000 --- a/lib/graphql/Fragments/MyPages/AccountPage.graphql +++ /dev/null @@ -1,4 +0,0 @@ -fragment AccountPage on AccountPage { - title - url -} diff --git a/lib/graphql/Fragments/MyPages/AccountPageContentDynamicContent.graphql b/lib/graphql/Fragments/MyPages/AccountPage/AccountPageContentDynamicContent.graphql similarity index 62% rename from lib/graphql/Fragments/MyPages/AccountPageContentDynamicContent.graphql rename to lib/graphql/Fragments/MyPages/AccountPage/AccountPageContentDynamicContent.graphql index 2f73f0e6c..75a3517c6 100644 --- a/lib/graphql/Fragments/MyPages/AccountPageContentDynamicContent.graphql +++ b/lib/graphql/Fragments/MyPages/AccountPage/AccountPageContentDynamicContent.graphql @@ -1,5 +1,5 @@ -#import "./AccountPage.graphql" -#import "./LoyaltyPage.graphql" +#import "../../PageLink/AccountPageLink.graphql" +#import "../../PageLink/LoyaltyPageLink.graphql" fragment AccountPageContentDynamicContent on AccountPageContentDynamicContent { dynamic_content { @@ -11,8 +11,8 @@ fragment AccountPageContentDynamicContent on AccountPageContentDynamicContent { linkConnection { edges { node { - ...LoyaltyPage - ...AccountPage + ...LoyaltyPageLink + ...AccountPageLink } } } diff --git a/lib/graphql/Fragments/MyPages/AccountPageContentShortcuts.graphql b/lib/graphql/Fragments/MyPages/AccountPage/AccountPageContentShortcuts.graphql similarity index 69% rename from lib/graphql/Fragments/MyPages/AccountPageContentShortcuts.graphql rename to lib/graphql/Fragments/MyPages/AccountPage/AccountPageContentShortcuts.graphql index 7b65240b1..4bcfc1044 100644 --- a/lib/graphql/Fragments/MyPages/AccountPageContentShortcuts.graphql +++ b/lib/graphql/Fragments/MyPages/AccountPage/AccountPageContentShortcuts.graphql @@ -1,6 +1,6 @@ -#import "../PageLink/AccountPageLink.graphql" -#import "../PageLink/ContentPageLink.graphql" -#import "../PageLink/LoyaltyPageLink.graphql" +#import "../../PageLink/AccountPageLink.graphql" +#import "../../PageLink/ContentPageLink.graphql" +#import "../../PageLink/LoyaltyPageLink.graphql" fragment AccountPageContentShortcuts on AccountPageContentShortcuts { shortcuts { diff --git a/lib/graphql/Fragments/MyPages/LoyaltyPage.graphql b/lib/graphql/Fragments/MyPages/LoyaltyPage.graphql deleted file mode 100644 index 0eb29b916..000000000 --- a/lib/graphql/Fragments/MyPages/LoyaltyPage.graphql +++ /dev/null @@ -1,4 +0,0 @@ -fragment LoyaltyPage on LoyaltyPage { - title - url -} diff --git a/lib/graphql/Query/AccountPage.graphql b/lib/graphql/Query/AccountPage.graphql index 59f97214a..239c76c24 100644 --- a/lib/graphql/Query/AccountPage.graphql +++ b/lib/graphql/Query/AccountPage.graphql @@ -1,5 +1,5 @@ -#import "../Fragments/MyPages/AccountPageContentDynamicContent.graphql" -#import "../Fragments/MyPages/AccountPageContentShortcuts.graphql" +#import "../Fragments/MyPages/AccountPage/AccountPageContentDynamicContent.graphql" +#import "../Fragments/MyPages/AccountPage/AccountPageContentShortcuts.graphql" query GetAccountPage($locale: String!, $url: String!) { all_account_page(limit: 1, locale: $locale, where: { url: $url }) { diff --git a/server/routers/contentstack/accountPage/query.ts b/server/routers/contentstack/accountPage/query.ts index 6d3035c38..4f8a286db 100644 --- a/server/routers/contentstack/accountPage/query.ts +++ b/server/routers/contentstack/accountPage/query.ts @@ -29,7 +29,7 @@ export const accountPageQueryRouter = router({ getBenefits: publicProcedure .input(z.object({ lang: z.nativeEnum(Lang) })) .query(async ({ input }) => { - const url = "/my-pages/overview" + const url = "/my-pages/benefits" const accountPage = await request( GetAccountPage, {