Commit 799d37e0 authored by Xavier Watkins's avatar Xavier Watkins
Browse files

More sustainable way to update link

parent 6ed04cd0
......@@ -132,7 +132,7 @@ wsService.factory('dbXrefService', ['$http', '$location', function($http, $locat
getLinkforId: function(name, id, xrefs) {
//Overwrite for QuickGO instead of AMIGO
if(name === 'GO') {
return 'http://' + $location.host() + '/term/GO:' + id;
return $location.absUrl().replace($location.path(), '/term/GO:' + id);
} else {
var match = _.find(xrefs, function(xref){
return xref.database === name || _.contains(xref.synonyms, name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment