Skip to content

Commit

Permalink
🚑 Fix logic for global links
Browse files Browse the repository at this point in the history
  • Loading branch information
EssamWisam committed Jun 24, 2024
1 parent 80bd90b commit bdc9bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _libs/nav/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bdc9bd2

Please sign in to comment.