Create a auto action in CB Auto Actions as follows.
Global
Triggers: None
Type: Login / Logout
User: Automatic
Access: All Registered Users
Action
Mode: Logout
Redirect: [cb:url location="profile_view" /]
Alerts: No
Now save it. Then under Global copy the URL to the auto action. Next create a Custom HTML field as follows.
HTML:
Code:
PROFILE_LOGOUT_PREVIEW
Now add the following condition to it under Integrations > CB Conditional.
Display: Field conditional show
Field: Users
User: Viewing User
Operator: Is
Users: [user_id]
Next add a language override for this since you want it multi-lingual. Example language overrides as follows.
Key: PROFILE_LOGOUT_PREVIEW
String:
Code:
<a href="AUTO_ACTION_URL_HERE">Click here to preview your profile</a>
Replace AUTO_ACTION_URL_HERE with the actual URL to the auto action we created earlier. This should log them out and redirect back to their profile. Due to CB Conditional it should only be visible to the users self.