LPS-42820 Added logic to handle different values of LOCALE_PREPEND_FRIENDLY_URL_STYLE