From 835e10ed4b1c8b06ca9c59d4600ff3227696a439 Mon Sep 17 00:00:00 2001 From: hunimuni Date: Thu, 9 Feb 2023 13:41:48 +0300 Subject: [PATCH] Fixed links The paths were not formed correctly, the symbol '/' was missing --- .../python/src/views/actions.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/documentserver-example/python/src/views/actions.py b/web/documentserver-example/python/src/views/actions.py index d0fec788..0afc6319 100755 --- a/web/documentserver-example/python/src/views/actions.py +++ b/web/documentserver-example/python/src/views/actions.py @@ -286,31 +286,31 @@ def edit(request): # an image which will be inserted into the document dataInsertImage = { 'fileType': 'png', - 'url': docManager.getServerUrl(True, request) + 'static/images/logo.png', - 'directUrl': docManager.getServerUrl(False, request) + 'static/images/logo.png' + 'url': docManager.getServerUrl(True, request) + '/static/images/logo.png', + 'directUrl': docManager.getServerUrl(False, request) + '/static/images/logo.png' } if isEnableDirectUrl else { 'fileType': 'png', - 'url': docManager.getServerUrl(True, request) + 'static/images/logo.png' + 'url': docManager.getServerUrl(True, request) + '/static/images/logo.png' } # a document which will be compared with the current document dataCompareFile = { 'fileType': 'docx', - 'url': docManager.getServerUrl(True, request) + 'static/sample.docx', - 'directUrl': docManager.getServerUrl(False, request) + 'static/sample.docx' + 'url': docManager.getServerUrl(True, request) + '/static/sample.docx', + 'directUrl': docManager.getServerUrl(False, request) + '/static/sample.docx' } if isEnableDirectUrl else { 'fileType': 'docx', - 'url': docManager.getServerUrl(True, request) + 'static/sample.docx' + 'url': docManager.getServerUrl(True, request) + '/static/sample.docx' } # recipient data for mail merging dataMailMergeRecipients = { 'fileType': 'csv', - 'url': docManager.getServerUrl(True, request) + 'csv', - 'directUrl': docManager.getServerUrl(False, request) + 'csv' + 'url': docManager.getServerUrl(True, request) + '/csv', + 'directUrl': docManager.getServerUrl(False, request) + '/csv' } if isEnableDirectUrl else { 'fileType': 'csv', - 'url': docManager.getServerUrl(True, request) + 'csv' + 'url': docManager.getServerUrl(True, request) + '/csv' } # users data for mentions