From bdc9bd296e7b27bf4aa3f868473d1e227a346e0b Mon Sep 17 00:00:00 2001 From: Essam Date: Mon, 24 Jun 2024 09:41:26 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20logic=20for=20global=20lin?= =?UTF-8?q?ks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _libs/nav/head.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_libs/nav/head.js b/_libs/nav/head.js index 3f7e2d58..f0b1f55d 100644 --- a/_libs/nav/head.js +++ b/_libs/nav/head.js @@ -434,7 +434,7 @@ function createNavItem(item) { // set style, link and text content of anchor link.textContent = item.name; link.classList.add("main-nav-item"); - link.href = hosted + link.href = (hosted && !item.href.startWith("https")) ? origin + "/DataScienceTutorials.jl" + item.href : item.href; link.id = item.id;