exact match if it has a filter

This commit is contained in:
j 2020-05-09 19:06:05 +02:00
parent cc48cc2f22
commit c71a2c3ff0

View file

@ -470,8 +470,11 @@ pandora.ui.documentInfoView = function(data, isMixed) {
function formatLink(value, key) { function formatLink(value, key) {
return (Ox.isArray(value) ? value : [value]).map(function(value) { return (Ox.isArray(value) ? value : [value]).map(function(value) {
var documentKey = Ox.getObjectById(pandora.site.documentKeys, key),
op = documentKey && documentKey.filter ? '==' : '=';
return key return key
? '<a href="/documents/' + key + '=' + value + '">' + value + '</a>' ? '<a href="/documents/' + key + op + value + '">' + value + '</a>'
: value; : value;
}).join(', '); }).join(', ');
} }