Skip to content

Commit

Permalink
fix mappings concept link not opening empty pages
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jun 22, 2024
1 parent 391ca70 commit 2d4e22e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/mappings_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def ajax_to_inter_portal_cls(cls)

def ajax_to_internal_cls(cls)
link_to("#{cls.id}<span href='/ajax/classes/label?ontology=#{cls.links["ontology"]}&concept=#{escape(cls.id)}' class='get_via_ajax'></span>".html_safe,
ontology_path(cls.explore.ontology.acronym, p: 'classes', conceptid: cls.id))
ontology_path(cls.explore.ontology.acronym, p: 'classes', conceptid: cls.id), target: "_blank")
end

# to get the apikey from the interportal instance of the interportal class.
Expand Down
4 changes: 2 additions & 2 deletions app/views/mappings/_show_line.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
- begin
- ont = target_concept.explore.ontology
- ont_name = ont.acronym
- ont_link = link_to ont_name, ontology_path(ont_name)
- ont_link = link_to ont_name, ontology_path(ont_name), 'data-turbo-frame':'_top'
- rescue
- ont_name = target_concept.links['ontology'] || target_concept.id
- ont_link = ont_name
- cls_link = raw(get_link_for_cls_ajax(target_concept.id, ont_name))
- cls_link = raw(get_link_for_cls_ajax(target_concept.id, ont_name, '_top'))
- type = 'Internal'
- else
- cls_label = get_label_for_external_cls(target_concept.links["self"])
Expand Down

0 comments on commit 2d4e22e

Please sign in to comment.