Revert "LPS-48834 Fix broken tests"

This reverts commit 2f939489c83ea16070f99f8a345c5a538f11637d.
Revert "LPS-48834 Auto sort"

This reverts commit df117aa572e3ec568547c994a7279dfc3a4609c5.
Revert "LPS-48834 SF"

This reverts commit 7be9c89f5eba1d51d3c98201c14415005dff5c03.
Revert "LPS-48834 Source formatting"

This reverts commit 4301f71f95e95d3b77d0ec75743ed6480cdd685a.
Revert "LPS-48834 Break out logic to separate method"

This reverts commit 7fdda155714cb669a3081fbde03dfc65e9acc236.
Revert "LPS-48834  URLs for links on portlets are pointing to the virtual host instead of the url the portal is being accessed through"

This reverts commit b7f1edbdf52e0fd5b545a0541f1671a8ee2d75f4.
Revert "LPS-42569 We don't need to addPreservedParameter because it's already been done vi getLayoutURL method in PortalImpl"

This reverts commit 3c1e59ec583f04037e0a4d7bc8afbd95f8966e37.
Revert "LPS-42569 We cannot use the canonical URL at this point because the canonical URL doesn't understand of localized layout friendly urls. We need to use the layoutURL. I have checked the use cases of LPS-35768 and it's not breaking them."

This reverts commit f2cb165ff4bb9065dceb2fc54af9bcba596ec7c4.
Revert "LPS-42569 If there is a virtualHostName we should return it even if canonicalURL is false or if the virtualHostName doesn't match the portalDomain (because the virtual hostname of the site can be different than the portal virtualhostname)"

This reverts commit ed75812f6bc03fa3b8e299d9846734bca8779206.
LPS-42569 Friendly URL does not match its page name after the available language is removed.