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
1 changed files with 4 additions and 1 deletions

View File

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