Skip to content

Commit bdc9bd2

Browse files
committed
🚑 Fix logic for global links
1 parent 80bd90b commit bdc9bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_libs/nav/head.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function createNavItem(item) {
434434
// set style, link and text content of anchor
435435
link.textContent = item.name;
436436
link.classList.add("main-nav-item");
437-
link.href = hosted
437+
link.href = (hosted && !item.href.startWith("https"))
438438
? origin + "/DataScienceTutorials.jl" + item.href
439439
: item.href;
440440
link.id = item.id;

0 commit comments

Comments
 (0)