Skip to content

Commit 2090171

Browse files
authored
Merge pull request #238 from JuliaAI/fix-external-links
🚑 Fix logic for global links
2 parents 80bd90b + bdc9bd2 commit 2090171

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)