diff --git a/docs/deleting-a-page-procedure.md b/docs/deleting-a-page-procedure.md new file mode 100644 index 0000000000..535369ff6d --- /dev/null +++ b/docs/deleting-a-page-procedure.md @@ -0,0 +1,29 @@ +# Deleting a page Procedure + +## For every file you delete do the following: +1. ### imports (if there are any) + Is the imported function/variable/type used elsewhere? + - Yes. only delete the import. + - No. Delete that file too. (Go recursively through the files meaning go to the first step of this list) +2. ### getStaticProps + - Delete the sanity lokalize keys in the nl_export.json + - Delete the JSON schema if the proto data is not used elsewhere. + - Delete the Sanity schema/structure if the imported sanity content is not used elsewhere. + +3. ### delete the whole page file. + - solve typescript errors + +4. ### follow up search for the page + - Look into the redirect.js file and remove/adjust the current or add redirects if needed. + - Look into the sitemap for references. + - Check the sidebar and layout files for references. + - Do an overall search for the page name: camelCased, and PascalCased. + +5. ### Do other checks + - ```yarn typecheck``` + - ```yarn bootstrap``` + - ```yarn build:app``` + - ```yarn start``` + + +[Back to index](index.md) diff --git a/packages/app/src/next-config/redirects/redirects.js b/packages/app/src/next-config/redirects/redirects.js index 49edd0f33b..b7458b77e2 100644 --- a/packages/app/src/next-config/redirects/redirects.js +++ b/packages/app/src/next-config/redirects/redirects.js @@ -117,6 +117,27 @@ async function redirects() { destination: '/artikelen', permanent: true, }, + // Redirects for removal of recommanded advices page - COR-1431 + { + source: '/veiligheidsregio/:code/maatregelen', + destination: '/', + permanent: true, + }, + { + source: '/landelijk/maatregelen', + destination: '/', + permanent: true, + }, + { + source: '/veiligheidsregio/:code/geldende-adviezen', + destination: '/', + permanent: true, + }, + { + source: '/landelijk/geldende-adviezen', + destination: '/', + permanent: true, + }, ]; } diff --git a/packages/cms/src/lokalize/key-mutations.csv b/packages/cms/src/lokalize/key-mutations.csv index a7c6419a8a..537636ae32 100644 --- a/packages/cms/src/lokalize/key-mutations.csv +++ b/packages/cms/src/lokalize/key-mutations.csv @@ -1 +1,32 @@ timestamp,action,key,document_id,move_to +2023-03-01T14:33:00.243Z,delete,pages.measures_page.nl.titel,jF33EuwumlGuwav2FD42bc,__ +2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.linktext_regionpage,jF33EuwumlGuwav2FD42qi,__ +2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.metadata.title,jF33EuwumlGuwav2FD42vk,__ +2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.titel,jF33EuwumlGuwav2FD42k0,__ +2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.titel_aanvullendemaatregelen,jF33EuwumlGuwav2FD42sO,__ +2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.toelichting_aanvullendemaatregelen,jF33EuwumlGuwav2FD42u4,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR01,jF33EuwumlGuwav2FD432S,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR02,jF33EuwumlGuwav2FD4348,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR03,jF33EuwumlGuwav2FD435o,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR04,jF33EuwumlGuwav2FD437U,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR05,jF33EuwumlGuwav2FD439A,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR06,jF33EuwumlGuwav2FD43Aq,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR07,jF33EuwumlGuwav2FD43CW,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR08,jF33EuwumlGuwav2FD43EC,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR09,jF33EuwumlGuwav2FD43Fs,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR10,jF33EuwumlGuwav2FD43HY,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR11,jF33EuwumlGuwav2FD43JE,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR12,jF33EuwumlGuwav2FD43Ku,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR13,jF33EuwumlGuwav2FD43Ma,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR14,jF33EuwumlGuwav2FD43OG,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR15,jF33EuwumlGuwav2FD43Pw,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR16,jF33EuwumlGuwav2FD43Rc,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR17,jF33EuwumlGuwav2FD43TI,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR18,jF33EuwumlGuwav2FD43Uy,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR19,jF33EuwumlGuwav2FD43We,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR20,jF33EuwumlGuwav2FD43YK,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR21,jF33EuwumlGuwav2FD43a0,__ +2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR22,jF33EuwumlGuwav2FD43bg,__ +2023-03-01T14:33:00.246Z,delete,pages.measures_page.vr.urls.VR23,jF33EuwumlGuwav2FD43dM,__ +2023-03-01T14:33:00.246Z,delete,pages.measures_page.vr.urls.VR24,jF33EuwumlGuwav2FD43f2,__ +2023-03-01T14:33:00.246Z,delete,pages.measures_page.vr.urls.VR25,jF33EuwumlGuwav2FD43gi,__