From be786d8113dfddd4063bcfb59a5560306bc7373d Mon Sep 17 00:00:00 2001 From: Will Abson Date: Fri, 8 Apr 2016 14:57:40 +0100 Subject: [PATCH] Fix thumbnail URLs in React app --- .../src/alfresco-file-list.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/react-app/webcomponents/alfresco-file-list/src/alfresco-file-list.html b/react-app/webcomponents/alfresco-file-list/src/alfresco-file-list.html index 00fa5977d0..102a04cad6 100644 --- a/react-app/webcomponents/alfresco-file-list/src/alfresco-file-list.html +++ b/react-app/webcomponents/alfresco-file-list/src/alfresco-file-list.html @@ -170,7 +170,7 @@
@@ -331,8 +331,19 @@ }).then(success.bind(this), error); }, + thumbUrl: function (item) { + return this.thumbBaseUrl() + '/api/node/' + item.nodeRef.replace(':/', '') + + '/content/thumbnails/doclib' + this.thumbSuffix(); + }, + thumbBaseUrl: function () { - return this.host + '/share/proxy/alfresco/'; + console.log('base url returned'); + return this.host + '/alfresco/service'; + }, + + thumbSuffix: function () { + console.log('suffix returned'); + return '?c=force&alf_ticket=' + getTicket(); } }); });