LPS-48834 (Temporary fix) Keep original logic that was broken by b7f1edbdf52e0fd5b545a0541f1671a8ee2d75f4 and its review

As it affects ee-6.2.x and master, this fix turns back original logic for getGroupFriendlyURL method, because the rollback is pretty difficult as too many commits were introduced after offending ones