Skip to content

Commit 5e534d2

Browse files
committed
chore: updating gitpuller link and target for launch to parent
1 parent b78ef04 commit 5e534d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/generate_notebook_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def collect_notebooks():
167167
"repo": DEF_REPO,
168168
"source": "local",
169169
"path": rel_path,
170-
"gitpuller": f"https://{JHUB_INSTANCE}/hub/user-redirect/git-pull?repo={git_url}&urlpath={rel_path}&branch=main",
170+
"gitpuller": f"https://{JHUB_INSTANCE}/hub/user-redirect/git-pull?repo={git_url}&urlpath=lab/tree/{rel_path}&branch=main",
171171
})
172172

173173
# --- Submodule notebooks
@@ -207,7 +207,7 @@ def collect_notebooks():
207207
"repo": git_info["repo"],
208208
"source": "submodule",
209209
"path": rel_path,
210-
"gitpuller": f"https://{JHUB_INSTANCE}/hub/user-redirect/git-pull?repo={git_url}&urlpath={repo_path}&branch=main",
210+
"gitpuller": f"https://{JHUB_INSTANCE}/hub/user-redirect/git-pull?repo={git_url}&urlpath=lab/tree/{repo_path}&branch=main",
211211
})
212212

213213
return catalog

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ <h1>Notebook Catalog</h1>
108108
});
109109
el.addEventListener('click:result-action', (e) => {
110110
const url = `${e.detail.gitpuller}`;
111-
window.open(url, '_blank');
111+
window.open(url, '_parent');
112112
});
113113
el.addEventListener('select', (e) => {
114114
window.location.href = e.detail.link;

0 commit comments

Comments
 (0)