Send a POST request to create a new article with a title that contains an em dash
"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",
...
}
}
"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",
...
}
}
Joomla! 4.1.5 Stable [ Kuamini ] 21-June-2022 14:00 GMT
MySQL 8.0.30
PHP 8.0.22
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.
Labels |
Added:
No Code Attached Yet
|
Yes I meant an em dash. It happened a while ago and I was testing a lot with hyphens and first thought it was an issue with hyphens, but it is not.
I fixed the issue description
Labels |
Added:
bug
|
The character you have posted in your example is not a hyphen. It looks like an em-dash —