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

Fix logout URL to fully logout. #59

Merged
merged 2 commits into from
Jun 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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