Type: Regression Bug
Affects Version/s: 7.3.X, Master
Component/s: Navigation Widgets > My Sites widget
LPS-97367, we moved the logic that adds a visited Site to the "Recent Sites" collection. We moved this logic from the Site Administration portlet to the User Personal Bar View Portlet.
Unfortunately, the User Personal Bar View Portlet only seems to be called when visiting an actual page of a Site. If a Site has no pages, then the logic won't be called, and so the Site won't be added to the "Recent Sites" view.
One major repercussion of this is that the Global Site can no longer ever be added to the Recent Sites view. The Global Site will never have pages, so it will never get added to the Recent Sites view. Based on the existence of
LPS-93854, this is a bug.
We should add the logic back into the Site Administration portlet where it originally was, so that the Recent Sites view will get updated properly regardless of whether it was the Site's page that was visited or the Site's control panel that was visited.
Steps to Reproduce
1. Start up a clean instance of Liferay and log in as the admin user
2. Navigate to the User Profile icon (top-right corner) > My Sites > My Sites tab > Global
3. Navigate to the User Profile icon (top-right corner) > My Sites > My Sites tab > Liferay DXP
4. Navigate to the User Profile icon (top-right corner) > My Sites, and observe the listings in the "Recent" tab
Expected Result: The Global site would appear in the Recent tab since the user recently visited the Global site
Actual Result: The Global site does not appear in the Recent tab