I think I’ve found a bug - when you use either the day and name or month and name permalinks option on wordpress, query parameters cause an internal server error, specifically:
TypeError: Cannot read property ‘slice’ of null
at extractParameters (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/get-match.ts:16:34)
at getMatch (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/get-match.ts:26:507)
at eval (webpack-internal:///./node_modules/@frontity/wp-source/src/actions.ts:22:84)
at Object.eval [as fetch] (webpack-internal:///./node_modules/@frontity/connect/src/create-store.js:8:725)
at eval (webpack-internal:///./node_modules/@frontity/tiny-router/src/actions.ts:70:143)
at eval (webpack-internal:///./node_modules/@frontity/connect/src/create-store.js:8:725)
at eval (webpack-internal:///./node_modules/@frontity/core/src/server/index.tsx:63:88)
at Array.map ()
at eval (webpack-internal:///./node_modules/@frontity/core/src/server/index.tsx:63:48)
at runMicrotasks ()
I noticed this issue after I changed permalinks from /Category/year/month/day/slug to just year/month/day/slug on my main project (cnbcafrica.com) and have been able to replicate it here https://frontity-93ryx00hc.vercel.app/2020/11/10/nigeria-exempts-dangote-cement-from-land-border-closure/?Asds=1
My repo is here: https://github.com/africabusinessnews/frontity
I’ve tried it with 5-6 different wordpress sites - it always fails when there is a day or month permalink.
The query strings that failed (All fail, but the ones I speciffically need working) are ?fbclid= from Facebook or mc_cid from mailchimp.