You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending a POST request to create a new article (end point {{base_path}}/api/index.php/v1/content/articles), the alias doesn't get generated correctly if the article title contains an em dash.
It gets fixed after you open an article in the editor and save and close it.
The text was updated successfully, but these errors were encountered:
Steps to reproduce the issue
Send a POST request to create a new article with a title that contains an em dash
Expected result
"data": {
"type": "articles",
"id": "409",
"attributes": {
"typeAlias": "com_content.article",
"id": 409,
"asset_id": 944,
"title": "We Need Moratorium on Gun Sales — ‘Time to Repeal the 2nd Amendment’",
"alias": "we-need-moratorium-on-gun-sales-time-to-repeal-the-2nd-amendment",
...
}
}
Actual result
"data": {
"type": "articles",
"id": "409",
"attributes": {
"typeAlias": "com_content.article",
"id": 409,
"asset_id": 944,
"title": "We Need Moratorium on Gun Sales — ‘Time to Repeal the 2nd Amendment’",
"alias": "we-need-moratorium-on-gun-sales---time-to-repeal-the-2nd-amendment",
...
}
}
System information (as much as possible)
Joomla! 4.1.5 Stable [ Kuamini ] 21-June-2022 14:00 GMT
MySQL 8.0.30
PHP 8.0.22
Additional comments
When sending a POST request to create a new article (end point {{base_path}}/api/index.php/v1/content/articles), the alias doesn't get generated correctly if the article title contains an em dash.
It gets fixed after you open an article in the editor and save and close it.
The text was updated successfully, but these errors were encountered: