LPS-48834  URLs for links on portlets are pointing to the virtual host instead of the url the portal is being accessed through
LPS-48834 Break out logic to separate method
LPS-48834 Source formatting
LPS-48834 SF
LPS-48834 Auto sort