Because some profiles do not have an EID, and the database doesn't allow NULL values on that field, any profile without an EID is supposedly accessable at the path /profile/0. However, since there are multiple profiles with this problem, only one is accessible at that path. To mitigate this, I have made changes on the CMS side, but I also felt it would be good to check for zero-value EIDs on the component side, and if the EID has a value of 0 to fall back to creating the path for the profile by using the asurite ID instead (thus yielding a path like /profile/djmahone instead.
SCHWEB-1128
Description
Because some profiles do not have an EID, and the database doesn't allow NULL values on that field, any profile without an EID is supposedly accessable at the path
/profile/0
. However, since there are multiple profiles with this problem, only one is accessible at that path. To mitigate this, I have made changes on the CMS side, but I also felt it would be good to check for zero-value EIDs on the component side, and if the EID has a value of 0 to fall back to creating the path for the profile by using the asurite ID instead (thus yielding a path like/profile/djmahone
instead.Links
Checklist
yarn install
&yarn build