Fix docx report generator for links in activity [SCI-7598] (#4720)

This commit is contained in:
ajugo 2022-12-15 10:54:24 +01:00 committed by GitHub
parent fcc3a9b5d9
commit 41892e35c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,8 @@
module Reports
class Utils
def self.link_prepare(scinote_url, link)
return link if scinote_url.blank?
link[0] == '/' ? scinote_url + link : link
end