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