Create a new article with a title containing a comma for example as title: My title, long title and click on SAVE button. Joomla will create an alias like my-title,-long-title. Question is: is comma allowed in alias?
comma filtered out while auto create alias
with comma
Joomla 3.8.5
I do not know if that is intended or fine to have comma in alias.
Depends if "Unicode Alias" are enabled or not. If enabled, the alias may contain a coma.
I guess that is ok since comas aren't invalid URL characters to my knowledge.
It seems to be a server issue. I use php 7.2.2 with Plesk and php is running as FPM application served by nginx. Did test on localhost without Nginx and using php 7.2.1 cgi-fcgi, issue does not occur. Did switch the live server to use php with FastCGI served by Apache, same issue. So maybe is php 7.2.2
Personally I don't see the issue with it so long as commas are valid characters in URI slugs, but if anyone does want to change the behavior send a PR changing this method.
Yes, if switching off unicode alias it does not occur. But if commas are valid characters in slugs in case of activated unicode alias I think the issue could get closed. Thanks.
a comma is a reserved character as a sub-delimiter http://www.ietf.org/rfc/rfc3986.txt
Afaik, comas are allowed (not reserved) in the path part of an URI. Which is the case here. It's up to the application if it is used as delimiter or just a generic char.
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-03-01 06:23:53 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/19803
Issue closed as stated by @franzpeter (Comment)
I tested the creation of an alias in both an article and a menu item
The title I used was new, old, and brave and in both cases the alias that was generated was new-old-and-brave