Skip to content

Commit

Permalink
Merge pull request #2043 from vidartf/fix-lab-resolve
Browse files Browse the repository at this point in the history
Ensure we fully resolve lab URLs
  • Loading branch information
jasongrout authored Apr 10, 2018
2 parents 6932caa + 8bf2566 commit acae915
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jupyterlab-manager/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ class WidgetManager extends ManagerBase<Widget> implements IDisposable {
* Resolve a URL relative to the current notebook location.
*/
resolveUrl(url: string): Promise<string> {
return this.context.urlResolver.resolveUrl(url);
return this.context.urlResolver.resolveUrl(url).then((partial) => {
return this.context.urlResolver.getDownloadUrl(partial);
});
}

/**
Expand Down

0 comments on commit acae915

Please sign in to comment.