Add a redirect for profile canonical links to user information page

Created on 1 December 2024, 3 days ago

Problem/Motivation

In https://www.drupal.org/project/social/issues/3044337 , we added a user experience in which we added a redirect from canonical user entity urls (/user/uid) to user stream page.

Even though we will hardly see the profile canonical urls being presented to end user on the platform, but we have certain edge cases where these URL may appear. For example, the profile entities are indexed with the profile canonical urls in social_user and social_all indexes. They may appear in searches if someone decides to add some custom search pages. Also, a user can simply visit /profile/profile-id which may appear broken as it is not intended user information page.

Steps to reproduce

1. Go to /profile/profile-id

Proposed resolution

Since, we do not want to alter the canonical profile urls as it may break some default behaviors of profile entity, so we are adding a redirect to user stream page or to the page which set by site manager or admin as default user profile landing page at /admin/config/opensocial/user.

Remaining tasks

N.A

🐛 Bug report
Status

Active

Version

12.4

Component

Code (back-end)

Created by

🇪🇸Spain navneet0693 Madrid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024