mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 04:23:01 +00:00
Add base_url to spawner
This commit is contained in:
@@ -20,6 +20,7 @@ const AccessServerButton = ({ url }) => (
|
||||
);
|
||||
|
||||
const ServerDashboard = (props) => {
|
||||
let base_url = window.base_url;
|
||||
// sort methods
|
||||
var usernameDesc = (e) => e.sort((a, b) => (a.name > b.name ? 1 : -1)),
|
||||
usernameAsc = (e) => e.sort((a, b) => (a.name < b.name ? 1 : -1)),
|
||||
@@ -411,7 +412,7 @@ const ServerDashboard = (props) => {
|
||||
userName={user.name}
|
||||
/>
|
||||
<a
|
||||
href={`/spawn/${user.name}${
|
||||
href={`${base_url}spawn/${user.name}${
|
||||
server.name && "/" + server.name
|
||||
}`}
|
||||
>
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user