In the Commerce we are using a FriendlyURLResolver (ProductFriendlyURLResolver) that renders the product detail page and set the product entry (CPCatalogEntry) in the HttpServletRequest.
The same friendly URL is not used by other widgets in the page (e.g. when you have to paginate the Product Publisher) and so it results to have wrong URL that doesn't trigger our FriendlyURLResolver because it points directly to the Layout (see attached images). We need a way to contribute to PortalURLImpl in order to add our logic to create FirendlyURL for the product.
We discovered this issue while working on this LPP: https://issues.liferay.com/browse/LPP-40975
You can follow the LPP steps to reproduce the bug.