Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Bug report: Letter 'z' stripped from all URLs
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1
  • 2

TOPIC: Bug report: Letter 'z' stripped from all URLs

Re:Bug report: Letter 'z' stripped from all URLs 18 years, 2 months ago #470

  • David
Thanks for the reply, it would be good to work this one out.

I'm using version 1.2.5

Our site uses ISO-8859-1 encoding (not unicode)

any suggestions how to fix?

Re:Bug report: Letter 'z' stripped from all URLs 18 years, 2 months ago #479

  • David
I think it has something to do with the regular expression or strtr() in this function:

components/com_sef/joomsef.php : line 520
 
function titleToLocation(&$title)
{
global $sefConfig;
 
// remove accented characters
// $title = strtr($title,
//'ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜݍßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ',
//'SOZsozzAuRAAAALCCCEEEEIIDDNNOOOORUUUUYTsraaaalccceeeeiiddnnooooruuuuyt-');
// Replace non-ASCII characters.
$title = strtr($title, $sefConfig->getReplacements());
 
// remove quotes, spaces, and other illegal characters
$title = preg_replace(array('/'/', '/[^a-zA-Z0-9\-!.,+]+/', '/(^_|_$)/'), array('', $sefConfig->replacement, ''), $title);
 
return $sefConfig->lowerCase ? strtolower($title) : $title;
}

Re:Bug report: Letter 'z' stripped SOLVED! 18 years, 2 months ago #480

  • David
OK, I had a look around and solved the problem.

It turns out there was a typo in the default replacement character array.

You can see it in admin -> components > artio sef -> configuration - > non-ascii char replacements

The old list was :

Ã?|A, Â|A, Ä‚|A, Ä|A, Ć|C, Ç|C, ÄŒ|C, ÄŽ|D, Ä?|D, É|E, Ä?|E, Ë|E, Äš|E, Í|I, ÃŽ|I, Ĺ|L, Å?|N, Ň|N, Ó|O, Ô|O, Å?|O, Ö|O, Å”|R, Å?|R, Å |S, Åš|O, Ť|T, Å®|U, Ú|U, Å°|U, Ãœ|U, Ý|Y, Ž|Z, Ź,Z, á|a, â|a, Ä?|a, ä|a, ć|c, ç|c, č|c, ď|d, Ä‘|d, é|e, Ä™|e, ë|e, Ä›|e, í|i, î|i, ĺ|l, Å„|n, Å?|n, ó|o, ô|o, Å‘|o, ö|o, Å¡|s, Å›|s, Å™|r, Å•|r, Å¥|t, ů|u, ú|u, ű|u, ü|u, ý|y, ž|z, ź|z, Ë™|-, ß|ss, Ä„|A, µ|u


Change the Ź,Z, to Ź|Z,

So the new list becomes :

Ã?|A, Â|A, Ä‚|A, Ä|A, Ć|C, Ç|C, ÄŒ|C, ÄŽ|D, Ä?|D, É|E, Ä?|E, Ë|E, Äš|E, Í|I, ÃŽ|I, Ĺ|L, Å?|N, Ň|N, Ó|O, Ô|O, Å?|O, Ö|O, Å”|R, Å?|R, Å |S, Åš|O, Ť|T, Å®|U, Ú|U, Å°|U, Ãœ|U, Ý|Y, Ž|Z, Ź|Z, á|a, â|a, Ä?|a, ä|a, ć|c, ç|c, č|c, ď|d, Ä‘|d, é|e, Ä™|e, ë|e, Ä›|e, í|i, î|i, ĺ|l, Å„|n, Å?|n, ó|o, ô|o, Å‘|o, ö|o, Å¡|s, Å›|s, Å™|r, Å•|r, Å¥|t, ů|u, ú|u, ű|u, ü|u, ý|y, ž|z, ź|z, Ë™|-, ß|ss, Ä„|A, µ|u


hope it works for you too.

Re:Bug report: Letter 'z' stripped SOLVED! 18 years, 2 months ago #523

  • miun
  • OFFLINE
  • A pesimist is just a well-informed realist.
  • Posts: 563
Hello David,

thanks for finding this, we should fix the typo in the release immediatelly.

Best regards,
Michal
ARTIO Support Team

Re:Bug report: Letter 'z' stripped SOLVED! 18 years, 2 months ago #551

  • David
You're welcome.

By the way, excellent extension!

Although you get a number of support enquiries on the forum, I should say, Artio Sef is working perfectly on our site. Loving it!

keep up the good work,

regards,

David T
  • Page:
  • 1
  • 2
User Login Empty