Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #59 from liffiton/patch-1
Browse files Browse the repository at this point in the history
Fix logout URL to fully logout.
  • Loading branch information
betatim authored Jun 1, 2018
2 parents ac54532 + 591e55c commit 2d78b6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function activateHubExtension(app: JupyterLab, palette: ICommandPalette, mainMen
// in a dictionary: app.web_app.settings['page_config_data'].
let hubHost = PageConfig.getOption('hub_host');
let hubPrefix = PageConfig.getOption('hub_prefix');
let baseUrl = PageConfig.getOption('baseUrl');

if (!hubPrefix) {
console.log('jupyterlab-hub: No configuration found.');
Expand All @@ -67,7 +68,7 @@ function activateHubExtension(app: JupyterLab, palette: ICommandPalette, mainMen
label: 'Logout',
caption: 'Log out of the Hub',
execute: () => {
window.location.href = hubHost + URLExt.join(hubPrefix, 'logout');
window.location.href = hubHost + URLExt.join(baseUrl, 'logout');
}
});

Expand Down

0 comments on commit 2d78b6a

Please sign in to comment.