Skip to content
Snippets Groups Projects
Commit c92028cc authored by shalini jha's avatar shalini jha Committed by Chris Wells
Browse files

Issue #3492108 by shalini_jha, chrisfromredfin, sayan_k_dutta, poker10: "Learn...

Issue #3492108 by shalini_jha, chrisfromredfin, sayan_k_dutta, poker10: "Learn more" link from project modal does not open in a new tab
parent 3dca0573
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -17,6 +17,7 @@
const anchors = description.getElementsByTagName('a');
for (let i = 0; i < anchors.length; i++) {
anchors[i].setAttribute('target', '_blank');
anchors[i].setAttribute('rel', 'noopener noreferrer');
}
project.body.value = description.innerHTML;
});
......@@ -123,7 +124,7 @@
>
<button
class="project__action_button"
onclick="window.location.href='{project.url}';"
onclick={`window.open('${project.url}', '_blank', 'noopener,noreferrer')`}
>{Drupal.t('Learn more')}</button
>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment