mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-11 06:35:58 +08:00
Fix docx report generator for links in activity [SCI-7598] (#4720)
This commit is contained in:
parent
fcc3a9b5d9
commit
41892e35c6
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,8 @@
|
||||||
module Reports
|
module Reports
|
||||||
class Utils
|
class Utils
|
||||||
def self.link_prepare(scinote_url, link)
|
def self.link_prepare(scinote_url, link)
|
||||||
|
return link if scinote_url.blank?
|
||||||
|
|
||||||
link[0] == '/' ? scinote_url + link : link
|
link[0] == '/' ? scinote_url + link : link
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue