Skip to content

Commit

Permalink
update guardian ad-lite route to new name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewHEguardian committed Jan 13, 2025
1 parent ff416fa commit 3797a00
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ export function CheckoutComponent({
const returnParam = returnLink ? '?returnAddress=' + returnLink : '';
const returnToLandingPage =
productKey === 'GuardianLight'
? `/guardian-light${returnParam}`
? `/guardian-ad-lite${returnParam}`
: `/${geoId}/contribute`;

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function GuardianAdLiteLanding({
const countrySwitcherProps: CountryGroupSwitcherProps = {
countryGroupIds: [GBPCountries],
selectedCountryGroup: countryGroupId,
subPath: '/guardian-light',
subPath: '/guardian-ad-lite',
}; // hidden initially, will display with more regions
const urlSearchParams = new URLSearchParams(window.location.search);
const urlSearchParamsReturn =
Expand Down
2 changes: 1 addition & 1 deletion support-frontend/assets/pages/[countryGroupId]/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const router = createBrowserRouter(
),
},
{
path: `/${geoId}/guardian-light`,
path: `/${geoId}/guardian-ad-lite`,
element: <GuardianAdLiteLanding geoId={geoId} />,
},
]),
Expand Down
16 changes: 8 additions & 8 deletions support-frontend/conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ GET /one-time-checkout controllers.A
GET /$countryGroupId<(uk|us|au|eu|int|nz|ca)>/one-time-checkout controllers.Application.productCheckoutRouter(countryGroupId: String)
GET /$countryGroupId<(uk|us|au|eu|int|nz|ca)>/thank-you controllers.Application.productCheckoutRouter(countryGroupId: String)

GET /$countryGroupId<(uk)>/guardian-light controllers.Application.productCheckoutRouter(countryGroupId: String)
GET /us/guardian-light controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /au/guardian-light controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /eu/guardian-light controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /int/guardian-light controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /nz/guardian-light controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /ca/guardian-light controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /guardian-light controllers.Application.geoRedirectToPath(path = "guardian-light")
GET /$countryGroupId<(uk)>/guardian-ad-lite controllers.Application.productCheckoutRouter(countryGroupId: String)
GET /us/guardian-ad-lite controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /au/guardian-ad-lite controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /eu/guardian-ad-lite controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /int/guardian-ad-lite controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /nz/guardian-ad-lite controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /ca/guardian-ad-lite controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /guardian-ad-lite controllers.Application.geoRedirectToPath(path = "guardian-ad-lite")

GET /contribute controllers.Application.contributeGeoRedirect(campaignCode = "")
GET /contribute/:campaignCode controllers.Application.contributeGeoRedirect(campaignCode: String)
Expand Down

0 comments on commit 3797a00

Please sign in to comment.