Skip to content

Commit

Permalink
Remove ?next from restartUrl for JupyterHub >=1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tslaton committed Aug 14, 2019
1 parent b4f5d2c commit d9f7b9e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/hub-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,7 @@ function activateHubExtension(

// If hubServerName is set, use JupyterHub 1.0 URL.
const restartUrl = hubServerName
? hubHost + URLExt.join(
hubPrefix,
'spawn',
hubUser,
hubServerName,
`?next=${hubPrefix}home`
)
? hubHost + URLExt.join(hubPrefix, 'spawn', hubUser, hubServerName)
: hubHost + URLExt.join(hubPrefix, `spawn?next=${hubPrefix}home`);

const { commands } = app;
Expand Down

0 comments on commit d9f7b9e

Please sign in to comment.