Skip to content

Commit

Permalink
Ensure we fully resolve lab URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed Apr 3, 2018
1 parent fb317cb commit 8bf2566
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 8bf2566

Please sign in to comment.