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:
Kumi 2024-06-22 20:09:20 +02:00
parent b60e6c8c33
commit 72ef4d8c0c
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -5,7 +5,7 @@ document.addEventListener("DOMContentLoaded", function () {
doiLink.addEventListener("click", function (event) {
event.preventDefault();
const doi = doiLink.getAttribute("data-doi");
const fullDoiUrl = `${window.location.origin}/${doi}`;
const fullDoiUrl = `https://freedoi.org/${doi}`;
navigator.clipboard.writeText(fullDoiUrl).then(
function () {