mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 07:20:26 +00:00
fix: encode thumbnail URL
If it contains space the URL won't load
(cherry picked from commit 30039e8e62)
This commit is contained in:
@@ -221,7 +221,7 @@ erpnext.ProductSearch = class {
|
||||
let thumbnail = res.thumbnail || "/assets/erpnext/images/ui-states/cart-empty-state.png";
|
||||
html += `
|
||||
<div class="dropdown-item" style="display: flex;">
|
||||
<img class="item-thumb col-2" src=${thumbnail} />
|
||||
<img class="item-thumb col-2" src=${encodeURI(thumbnail)} />
|
||||
<div class="col-9" style="white-space: normal;">
|
||||
<a href="/${res.route}">${res.web_item_name}</a><br>
|
||||
<span class="brand-line">${res.brand ? "by " + res.brand : ""}</span>
|
||||
|
||||
Reference in New Issue
Block a user