Open jtwillia2 opened 5 years ago
Opening an external link on a new tab is a good convention to follow. Love this plugin, by the way!
Thanks! My university client would also like the links to open in a new tab. The rel tag would be good as well. Love the plugin.
In the meantime, you can use jQuery to open in new tab/window until plugin update:
`jQuery(document).ready(function($){
$('.abt-bibliography a').click(function(){
window.open(this.href);
return false;
});
});`
Hi... I have the same issue today, and try to find a quick solution.
I think that this issue is not on ABT side... ABT just pass the vendor data to our WordPress it is about vendor/citeproc.js --> I think it's from https://github.com/Juris-M/citeproc-js
if you want to manually change:
"@URL/true"
and "@DOI/true"
rel="nofollow"
between <a
and href
so it will become... <a rel="nofollow" href="...
you could add target="_blank"
and "noreferrer noopener" if you want...then if you have some free time... :D
However, I think is better to set it with <a rel="noreferrer noopener" target="_blank" href=...
, because default WordPress link (if using "open in new tab") will add attributes like this.
And, please remember that you must re-check this file if ABT plugin is updated.
@dsifford, If you want to make it default, you could edit the vendor file before publishing it on the next version. :)
Thanks for this awesome plugin! I'd like to request the option (or make it default behavior) to add the following to the outbound hyperlinks created in the bibliography: