We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef4dbed commit 1d84ca3Copy full SHA for 1d84ca3
views/login.html
@@ -267,10 +267,15 @@
267
document.getElementById('info').classList.toggle('active');
268
}
269
270
+ function getNext() {
271
+ var next = /next=(.*)/.exec(window.location.search); // assuming only search param
272
+ return next ? '&next=' + next[1] : '';
273
+ }
274
+
275
window.onload = function() {
276
var form = document.getElementById('loginForm');
277
form.addEventListener('submit', onSubmit);
- form.setAttribute('action', '/login?host=' + window.location.host);
278
+ form.setAttribute('action', '/login?host='+ window.location.host + getNext());
279
280
</script>
281
</head>
0 commit comments