solved Blog Title Links are broken

rockas
@rockas
10 years ago
9 posts
Blogs link that are in greek not working...
the path of link is /news_story/-
it supposed to be /news_story/blog_title
this is happening only in greek language in english is working fine
updated by @rockas: 02/10/14 12:49:10PM
michael
@michael
10 years ago
7,746 posts
which skin.
rockas
@rockas
10 years ago
9 posts
Projam check it out on www.greekrock.gr
updated by @rockas: 01/08/14 08:09:39PM
brian
@brian
10 years ago
10,148 posts
I'm checking this out, as the core should work with this.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
I think I have a solution for this - on line 1406 of the modules/jrCore/lib/util.php file change this:

$str = trim(preg_replace("/[\/_| -]+/", '-', $str));

to this:

$str = trim(trim(preg_replace("/[\/_| -]+/", '-', $str)), '-');

That should get rid of the dangling - (dash), and when the core sees it stripped everything it will instead use a rawurlencoding instead.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
rockas
@rockas
10 years ago
9 posts
thanx brian that fix it
brian
@brian
10 years ago
10,148 posts
rockas:
thanx brian that fix it

Awesome - I will have that fix in for good in jrCore 5.1.12.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags