Skip to content
Snippets Groups Projects
Commit f4bf16ad authored by Robert Lange's avatar Robert Lange
Browse files

refs #20945 [finc] RecordViewHelper: remove invalid new line from link templates in getLink

* TODO PR / refactoring of link templates
parent 6293701c
No related merge requests found
......@@ -197,7 +197,8 @@ class Record extends \VuFind\View\Helper\Root\Record
$type == 'author'
? $this->removeAuthorDates($lookfor) : $lookfor
);
return parent::getLink($type, $lookfor);
/* remove invalid new line in link templates, remove after fixed in templates or VuFind parent */
return str_replace(["\n"], '', parent::getLink($type, $lookfor) ?? '');
}
/**
......
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