By Gregor on Friday, 17 May 2019
Posted in General Issues
Likes 0
Views 650
Votes 0
Hi,

Is there a way to automatically get rid of spaces and special characters in the permalink?

Regards,
Mark
Hi Arlex,

Thank you, that's it. Unfortunately our blog is not only in English. Do you know if there is any consequences of using these characters in URL's?

Regards,
Mark

From what I research, it seems like there will not cause any other issue if the URL contain those symbol like comma because the comma ( " , " ) reserved character is often used for similar purposes, you can read more what others reserved character here .

Even the URL contain "*" other browser also considered it as the valid URL, for example :

[gist type="php"]
http://web.archive.org/web/*/http://www.example.com/
[/gist]

If you really want to get rid of those comma symbol in URL, then you have to modify on this core file
JoomlaFolder/administrator/components/com_easyblog/includes/router.php

You can take a look my attached screenshot below.

[gist type="php"]
// Remove comma or other symbol as well
$excludeSymbols = array(',');
$permalink = str_replace($excludeSymbols, '', $permalink);
[/gist]
·
Thursday, 13 June 2019 10:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Can you show us one of the permalink which you referring to so we can check further?

By right, it shouldn't have include the space.
·
Saturday, 18 May 2019 12:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

No problem, have a nice weekend!

Regards,
Mark
·
Saturday, 18 May 2019 19:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, is it you found a solution for this?

Because I would like to check whether this is a bug on our end.
·
Sunday, 19 May 2019 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Sorry I am very busy. I could'n fine one because I change them manually but my moderators do not What I know:
- sometimes there is a space at the start of the permalink/title when they copy/paste.
- characters like , and ' do remain in the URL right?

When I notice a new one I will let you know okay?

Regards,
Rutger
·
Thursday, 23 May 2019 20:14
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Rutger

- sometimes there is a space at the start of the permalink/title when they copy/paste.

I tried to replicate this but no matter what I put a space there, it will remove those space automatically when the system trying to generate a permalink base on the blog title.

- characters like , and ' do remain in the URL right?

Nope, if you put the comma and single quote, it will stripped it.
·
Friday, 24 May 2019 10:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you, that's good to hear.

I am not so sure about the comma however. Can please check the news section on our site?
For example the article: MoP&F will use Dutch loans for Pyigyidagun Tsp.... had this problem (I removed it) but there are more articles with a comma in the URL. When I debug this article in Edge browser there is also a problem with a closing ; caused by the Title? Not sure, hope you know what the problem is.

Regards,
Mark
·
Wednesday, 05 June 2019 23:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for getting back to us, it seems like I know what is the reason URL contain those symbol like comma, because you have enabled this 'Unicode Aliases' setting (screenshot : http://take.ms/1wYev ) from Easyblog, so it will render those unicode in URL.

If your blogger only write English character, I would suggest you to turn it off this setting.

Because I've tested in Joomla article, this is same behavior if you have enable this 'Unicode Aliases' setting from Joomla global configuration setting page (screenshot : http://take.ms/Cok1M ), it will contain those comma in the article alias as well.
·
Thursday, 06 June 2019 14:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you, that's it. Unfortunately our blog is not only in English. Do you know if there is any consequences of using these characters in URL's?

Regards,
Mark
·
Wednesday, 12 June 2019 21:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you for your help! I think it's best I do not change core files unless it's absolutely necessary. No real problems yet so I'll leave it as it is. If we encounter any further problems I'll let you know okay?

Regards,
Mark
·
Wednesday, 03 July 2019 20:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Thank yiu for updating us on this.
Yeah, keep us update if you hit this error again.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Wednesday, 03 July 2019 21:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post