ASU / asu-unity-stack

ASU Unity Design System
https://unity.web.asu.edu/
Other
13 stars 8 forks source link

SCHWEB-1128: fix(app-webdir-ui): fix zero value EID in path problem #1207

Closed tbutterf closed 12 months ago

tbutterf commented 1 year ago

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