[TECHNICAL SUPPORT] LPS-47095 User's private pages coming from a UserGroup have wrong URLs

https://issues.liferay.com/browse/LPS-47095

Hey Jorge,

Let us know if there would be any cases which we did not consider. I've added my SF in order to avoid StringOutOfBoundsException that is technically possible.

Thanks,
Tibor

/cc @NorbertKocsis