diff --git a/src/server/services/cms-content.ts b/src/server/services/cms-content.ts index 4169d04de..b6ef6c0b7 100644 --- a/src/server/services/cms-content.ts +++ b/src/server/services/cms-content.ts @@ -211,12 +211,9 @@ async function getGeneralPage( }; }, formatUrl({ url }) { - const urls = { - private: `${url}/ziet-amsterdam/?AppIdt=app-data`, - 'private-attributes': '', // Not used - commercial: `${url}/overzicht-producten-ondernemers/?AppIdt=app-data`, - }; - return urls[profileType] || urls.private; + return profileType === 'commercial' + ? `${url}/overzicht-producten-ondernemers/?AppIdt=app-data` + : `${url}/ziet-amsterdam/?AppIdt=app-data`; }, });