Skip to content

Commit e50235d

Browse files
committed
Adustment to ensure link is followed to another browser window.
1 parent 2da6c09 commit e50235d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/DataHarmonizer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ class DataHarmonizer {
18971897

18981898
// Requires markup treatment of URLS. Issue: this is getting rendered
18991899
// wrong.
1900-
const slot_uri = this.renderSemanticID(field.slot_uri, true);
1900+
const slot_uri = this.renderSemanticID(field.slot_uri);
19011901
if (field.slot_uri && this.columnHelpEntries.includes('slot_uri')) {
19021902
ret += `<p><strong data-i18n="help-sidebar__column">${i18next.t(
19031903
'help-sidebar__slot_uri'

lib/utils/content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const urlToClickableAnchor = (string) => {
5353
'g'
5454
);
5555
// Replace the URL with an anchor tag in the string
56-
string = string.replace(regex, `<a href="${escapedURL}">${escapedURL}</a>`);
56+
string = string.replace(regex, `<a href="${escapedURL}" target="_blank">${escapedURL}</a>`);
5757
});
5858

5959
return string;

0 commit comments

Comments
 (0)