Fix link.

This commit is contained in:
BoHung Chiu 2022-12-15 18:14:30 +08:00
parent a75c50c6f4
commit 65aed5130f
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ class Technique
if field == "title"
link = OrbitHelper.url_to_plugin_show(technique.to_param,'personal_technique')
tmp_title = (title_is_paper_format ? technique.create_link : value)
value = link == '#' ? tmp_title : "<a href='#{link}' target='_blank' title='#{tmp_title}'>#{tmp_title}</a>"
url_to_plugin_show_blank = OrbitHelper.instance_variable_get(:@url_to_plugin_show_blank)
value = (url_to_plugin_show_blank ? tmp_title : "<a title=\"#{tmp_title}\" href=\"#{link}\" target=\"_blank\">#{tmp_title}</a>")
end
value
end