By Evgeniy on Monday, 28 April 2014
Posted in General Issues
Replies 7
Likes 0
Views 625
Votes 0
File: \components\com_easydiscuss\helpers\router.php


Search:
if( DiscussRouter::isSefEnabled() )

in this section locate:
			if( DiscussRouter::isSefEnabled() )
{
$container = explode('/', $url);
$container = array_unique($container);
$url = implode('/', $container);
}

change:
			if( DiscussRouter::isSefEnabled() )
{
$container = explode('/', $url);
$container = array_unique($container);


foreach ($container as $k=>$c) {
if ($k>0) {
if (strpos($c,'#')!==false) {
$c=explode('#',$c,2);
$container[$k]=urlencode($c[0]).'#'.urlencode($c[1]);
} else $container[$k]=urlencode($c);
}
}

$url = implode('/', $container);
}


Thanks.
Can you please be more descriptive of this issue please? I am not really sure what you are trying to achieve with this hack
·
Monday, 28 April 2014 12:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, if using the English language - all ok. (without hack)
Else: hack encode url to %xx (hex-format) for correct work with ANY languages in URL.
·
Monday, 28 April 2014 16:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, you can already enable unicode aliases in the back end settings of EasyDiscuss. Why would you want to urlencode them again?
·
Monday, 28 April 2014 17:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Setting been enabled and it not helping for correctly working with Russian language (2 bytes encoded symbols) for Email links...
screenshot
Investigate it please!
·
Tuesday, 29 April 2014 05:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Evgeniy,

If you have enabled the unicode aliases, what happens is that the URL of the post items would end up like /post/9999-some-unicode-text . EasyDiscuss only reads the 9999 part and ignores the rest so it really shouldn't be an issue at all. Tested this locally and it works fine. Maybe you can post the link that is generated from the email here?
·
Tuesday, 29 April 2014 11:22
·
0 Likes
·
0 Votes
·
0 Comments
·
http://site.ru/ru/главная/подскажите-варианты-игр-на-природе.html#reply-56
·
Tuesday, 29 April 2014 19:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Evgeniy,

Hm, this is odd as I cannot reproduce this issue locally. Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Wednesday, 30 April 2014 03:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post