File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments