Affects Version/s: 7.0.X, Master
Component/s: Sites Administration > Sites
The Sites Directory portlet displays all sites that have pages, even if those sites are inactive. This results in broken links if a user tries to click on a site that is inactive.
Steps to Reproduce
1. Start up Liferay and log in as the admin user.
2. Create a new Site from Control Panel > Sites.
3. Add a Page to the Site.
4. Go back to the Welcome Page and add a "Sites Directory" Portlet. The created Site is listed there.
5. Deactivate the Site.
Expected Result: The Site should not be listed in Sites Directory. Only active sites should be listed.
Actual Result: The Site is still listed in Sites Directory Portlet. If you click on the Site, you are taken to a blank page.