From ed6c384b6858952a01a770bc9871581fb342898f Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 14 Jun 2016 14:51:33 +0100 Subject: [PATCH] fix urls of downloaded files to those provided by clsi --- .../web/public/coffee/ide/pdf/controllers/PdfController.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 58d7c34564..9915f8a627 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -125,7 +125,8 @@ define [ file.name = "#{file.path.replace(/^output\./, "")} file" else file.name = file.path - file.url = "/project/#{project_id}/output/#{file.path}" + if not file.url? + file.url = "/project/#{project_id}/output/#{file.path}" if response.clsiServerId? file.url = file.url + "?clsiserverid=#{response.clsiServerId}" $scope.pdf.outputFiles.push file