fix: update DOI URL to use freedoi.org
Replaces the dynamic origin-based DOI URL with a standardized URL using freedoi.org. This ensures consistent and accurate DOI links, improving user experience and reliability.
This commit is contained in:
parent
b60e6c8c33
commit
72ef4d8c0c
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
doiLink.addEventListener("click", function (event) {
|
doiLink.addEventListener("click", function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const doi = doiLink.getAttribute("data-doi");
|
const doi = doiLink.getAttribute("data-doi");
|
||||||
const fullDoiUrl = `${window.location.origin}/${doi}`;
|
const fullDoiUrl = `https://freedoi.org/${doi}`;
|
||||||
|
|
||||||
navigator.clipboard.writeText(fullDoiUrl).then(
|
navigator.clipboard.writeText(fullDoiUrl).then(
|
||||||
function () {
|
function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue