summaryrefslogtreecommitdiff
path: root/frontend/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/index.js')
-rw-r--r--frontend/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/index.js b/frontend/index.js
index 7dc741e..12f1e97 100644
--- a/frontend/index.js
+++ b/frontend/index.js
@@ -5,8 +5,8 @@
} else {
const urlCookie = await cookieStore.get("last_used_url");
- if (urlCookie) {
- window.location.href = `./start/?machine_id=${urlCookie}`;
+ if (urlCookie && urlCookie != null && urlCookie != "null") {
+ window.location.href = `./start/?machine=${urlCookie.value}`;
} else {
window.location.href = './status/'
}