Skip to content

Commit 5d1b14a

Browse files
authored
Merge pull request #14 from 2i2c-org/utoronto-staging
Don't treat /next/ as valid hub target
2 parents 25033a2 + 6f34a3c commit 5d1b14a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extra-assets/js/login.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ $(function() {
1818
redirectIfNeeded();
1919
// if next query param is presentm just do nothing
2020
const nextPresent = new URL(document.location).searchParams.get('next');
21-
if (!nextPresent) {
21+
// /hub/ being next should be treated same as no next present
22+
if (!nextPresent || nextPresent === "/hub/") {
2223
setInterface($("input[name='interface']:checked").val());
2324

2425
$("input[name='interface']").change(function() {

0 commit comments

Comments
 (0)