[TECH SUPPORT] LPS-42820 Asset publisher error when changing language after displaying content in another page using virtualhost

Hi Tamás,

I have found that the code that got committed to master does not handle all the use cases for LPS-42820. Moreover the additional changes caused a regression bug: https://issues.liferay.com/browse/LPS-43092

Resolution: Added logic to handle different values of LOCALE_PREPEND_FRIENDLY_URL_STYLE

Please review my changes.

Thanks,
Ákos