Personalized pages don't work with External Login users (perhaps due to the username being an email, so having @) #4984
-
hi - am really enjoying using Oqtane, but am finding a problem with its Personalized page feature, e.g. for a page called mypage. If I have a local user with a username without an @ e.g. SomeName then the Personalized page works fine: when the user clicks on the pencil icon to edit mypage, a copy of the page is created at mypage/SomeName and that page is then visible at that url. But if I use a social media login, e.g. from LinkedIn, then the username is likely to be an email address, e.g. [email protected] And also, because it seems that UserName can't be changed after a user has been created, I can't solve this by changing the user's username to something without an @. Any suggestions as to how I can fix this please? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
@patrickjlee Urls cannot contain @ characters... so the problem is that the personalized page route does not encode/substitute it with a valid character. In order to create "clean" routes it could substitute characters with a "-" (similar to how the blog module creates slugs from titles). This would create the potential for duplicate routes (ie. if 1 user had a username of john-smith and another had a username of john@smith) however the probability of this occurring is so low that I would not worry about it. |
Beta Was this translation helpful? Give feedback.
-
@patrickjlee #4989 resolves this issue |
Beta Was this translation helpful? Give feedback.
-
@patrickjlee I was not happy with some aspects of personalized pages so I made some improvements in PR #4993:
|
Beta Was this translation helpful? Give feedback.
-
I'm working on a product where every user will be able to create sub-sites similar to My Page. I have not investigated how My Page is handled differently from other pages, but I feel like that's the best way to handle this sort of thing. If I'm following the above conversation, the path will be /personalized/page-name. Do we have control over the root of the slug, or is it always /personalized/. I'll pull the latest dev and play around a bit. |
Beta Was this translation helpful? Give feedback.
@patrickjlee I was not happy with some aspects of personalized pages so I made some improvements in PR #4993: