Actions
Defect #42588
openGenerated SVG sprite icon URL does not include digest when rendered in a JSON response
Status:
New
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
The sprite_icon
method generally generates a SVG tag as below:
<svg class="s18 icon-svg" aria-hidden="true">
<use href="/assets/icons-35b4b65e.svg#icon--add"></use>
</svg>
But when rendered via render json:
, the use
tag's href
does not contain the digest:
{
"id": 1234,
"label": "Assignment #1234: Test issue",
"value": 1234
"icon": "<svg class=\"s18 icon-svg\" aria-hidden=\"true\"><use href=\"/icons.svg#icon--issue\"></use></svg>"
}
I have attached a patch file to patch the AutoCompletesController
to reproduce the bug. After applying the patch, trigger an issue autocomplete and check the response.
Files
No data to display
Actions