Skip to content

Commit

Permalink
fix href prefixing - take II
Browse files Browse the repository at this point in the history
  • Loading branch information
ablaom committed Jun 24, 2024
1 parent f0ee66e commit c4015b1
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.startsWith("https"))
? origin + "/DataScienceTutorials.jl" + item.href
: item.href;
link.id = item.id;
Expand Down

0 comments on commit c4015b1

Please sign in to comment.