I was going to post this a question, but I figured it out and thought it might be useful for some folks.
Context: list / detail pages for users (would apply to any thing I guess…)
Symptom: clicking through from the list of users to the user detail page resulted in ‘current page user’ always being blank for some records
- wasn’t a data privacy issue
- no errors in the logs
- no useful info in debug mode
Problem: A 3rd party system I was previously integrating with didn’t trim first name, last name, or email address fields and I was building the slug from the name data. My API workflow wasn’t trimming that info either.
After trimming the trailing spaces from the slug, the detail pages now work. In my case, this was really old data, all of my user data is trimmed and email addresses are converted to lower case as well.
Now I get to run a workflow on 11,000 user records to seek and destroy other bad data. Yippee. Hope this prevents someone from ripping their hair out.