diff --git a/app/index.html b/app/index.html
index 9bfa7cd..2b4703a 100644
--- a/app/index.html
+++ b/app/index.html
@@ -60,7 +60,7 @@
// install endpwn
var o = fs.existsSync(data + '/settings.json') ? JSON.parse(fs.readFileSync(data + '/settings.json', 'utf8')) : {}; // load settings.json
- o['WEBAPP_ENDPOINT'] = location.href + '?'; // aim the app at stage 0
+ o['WEBAPP_ENDPOINT'] = location.href.split('?')[0] + '?'; // aim the app at stage 0
o['WEBAPP_PATH'] = undefined; // clear old WEBAPP_PATH
fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk