mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
fix relative links for spawn
This commit is contained in:
@@ -105,9 +105,9 @@ require(["jquery", "moment", "jhapi", "utils"], function(
|
|||||||
var serverName = row.find(".new-server-name").val();
|
var serverName = row.find(".new-server-name").val();
|
||||||
if (serverName === "") {
|
if (serverName === "") {
|
||||||
// ../spawn/user/ causes a 404, ../spawn/user redirects correctly to the default server
|
// ../spawn/user/ causes a 404, ../spawn/user redirects correctly to the default server
|
||||||
window.location.href = "../spawn/" + user;
|
window.location.href = "./spawn/" + user;
|
||||||
} else {
|
} else {
|
||||||
window.location.href = "../spawn/" + user + "/" + serverName;
|
window.location.href = "./spawn/" + user + "/" + serverName;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user