fix relative links for spawn

This commit is contained in:
Min RK
2019-09-19 16:12:29 +02:00
committed by GitHub
parent f474b31c94
commit f79495e6bf

View File

@@ -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;
} }
}); });