diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-09-07 14:43:48 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-09-07 14:43:48 +0200 |
| commit | 49c3264ce0f73a746f9a229dba423f6c0ea3d485 (patch) | |
| tree | 9cd4603a7b9708d061802f9e0f638e5c684d15a9 /addons/web_editor/static/src/js/widgets | |
| parent | b4c72220c72e22328b3a96024c59d79889b71ae5 (diff) | |
| parent | 4850fb08385de3f0851a732c97c90402e89838b7 (diff) | |
[MERGE] forward port branch saas-11.3 up to 4850fb08385
Diffstat (limited to 'addons/web_editor/static/src/js/widgets')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets/widgets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index 16dfa27b34c..d7fd35f30dd 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -516,7 +516,7 @@ var ImageWidget = MediaWidget.extend({ self.$('.well > span').remove(); self.$('.well > div').show(); _.each(attachments, function (record) { - record.src = record.url || '/web/image/' + record.id; + record.src = record.url || _.str.sprintf('/web/image/%s/%s', record.id, encodeURI(record.name)); // Name is added for SEO purposes record.isDocument = !(/gif|jpe|jpg|png/.test(record.mimetype)); }); if (error || !attachments.length) { |
