Skip to content

Commit

Permalink
FIX: adjust jupyterhub links
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Jan 30, 2025
1 parent 19b3c59 commit d44ef3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/quantecon_book_theme/assets/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ document.addEventListener("DOMContentLoaded", function () {
let urlpath = document.getElementById("launcher-private-input").dataset
.urlpath;
const repoPrefix =
"/jupyter/hub/user-redirect/git-pull?repo=" +
"/user-redirect/git-pull?repo=" +
repo +
"&urlpath=" +
urlpath;
Expand Down
2 changes: 1 addition & 1 deletion src/quantecon_book_theme/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def add_hub_urls(

urlpath = ui_pre + "/" + repo + "/" + repo_subpath + path_rel_repo
url = (
f"{jupyterhub_url}/jupyter/hub/user-redirect/git-pull?"
f"{jupyterhub_url}/user-redirect/git-pull?"
f"repo={repo_url}&urlpath={urlpath}" # noqa: E501
f"&branch={branch}"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@
function setLaunchServer() {
launchNotebookLink.removeAttribute("style")
if ( localStorage.launcherType == 'launcher-private' ) {
let repoPrefix = "/jupyter/hub/user-redirect/git-pull?repo=" + repoURL + "&branch=" + branch + "&urlpath=" + urlPath;
let repoPrefix = "/user-redirect/git-pull?repo=" + repoURL + "&branch=" + branch + "&urlpath=" + urlPath;
launcherPrivateValue = launcherPrivate.value
if (!launcherPrivateValue) {
launchNotebookLink.removeAttribute("href")
Expand Down

1 comment on commit d44ef3e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.