Skip to content

Commit

Permalink
Merge branch 'fix/refresh-concepts-page-when-jump-to' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal committed Nov 26, 2024
2 parents 178990c + fb06a1a commit d630fba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/helpers/federation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ module FederationHelper

def federated_portals
$FEDERATED_PORTALS ||= LinkedData::Client.settings.federated_portals
$FEDERATED_PORTALS.each do |key, portal|
portal[:ui] += "/" unless portal[:ui].end_with?("/")
portal[:api] += "/" unless portal[:api].end_with?("/")
end
$FEDERATED_PORTALS
end

def internal_portal_config(id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ export default class extends OntoportalAutocompleteController {

// Appropriate value selected
if (li.extra) {
let sValue = jQuery("#jump_to_concept_id").val()
Turbo.visit("/ontologies/" + jQuery(document).data().bp.ontology.acronym + "/?p=classes&conceptid=" + encodeURIComponent(sValue) + "&jump_to_nav=true")
let sValue = jQuery("#jump_to_concept_id").val();
let acronym = jQuery(document).data().bp.ontology.acronym;
let newUrl = "/ontologies/" + acronym + "/?p=classes&conceptid=" + encodeURIComponent(sValue) + "&jump_to_nav=true";
window.location.href = newUrl
}
}

Expand Down

0 comments on commit d630fba

Please sign in to comment.