Osclass icon indicating copy to clipboard operation
Osclass copied to clipboard

osc_item_url_from_item and locales

Open patriksh opened this issue 2 years ago • 0 comments

osc_item_url_from_item behaves weird with locales.

It uses the second argument, $locale and prepends it to the URL. Why not use it to get the item title in the proper locale?

Replace osc_sanitizeString(str_replace(',', '-', $item['s_title'])), with osc_sanitizeString(str_replace(',', '-', osc_item_title($locale))).

There's no need for the locale code in the URL at all imho.

patriksh avatar Mar 29 '22 22:03 patriksh