Skip to content

Commit

Permalink
Runtime link target for RTF snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
cea2aj committed Jun 21, 2021
1 parent 3ec75c5 commit c063198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion directanswercards/documentsearch-standard/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class documentsearch_standardComponent extends BaseDirectAnswerCard['documentsea
const linkTarget = AnswersExperience.runtimeConfig.get('linkTarget') || '_top';
let snippetValue = '';
if (answer.fieldType === "rich_text" && snippet) {
snippetValue = ANSWERS.formatRichText(snippet.value, 'snippet');
snippetValue = ANSWERS.formatRichText(snippet.value, 'snippet', linkTarget);
} else if (snippet) {
snippetValue = Formatter.highlightField(snippet.value, snippet.matchedSubstrings);
}
Expand Down

0 comments on commit c063198

Please sign in to comment.