Skip to content

Commit

Permalink
Merge pull request #14 from 2i2c-org/utoronto-staging
Browse files Browse the repository at this point in the history
Don't treat /next/ as valid hub target
  • Loading branch information
yuvipanda authored Sep 23, 2022
2 parents 25033a2 + 6f34a3c commit 5d1b14a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extra-assets/js/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ $(function() {
redirectIfNeeded();
// if next query param is presentm just do nothing
const nextPresent = new URL(document.location).searchParams.get('next');
if (!nextPresent) {
// /hub/ being next should be treated same as no next present
if (!nextPresent || nextPresent === "/hub/") {
setInterface($("input[name='interface']:checked").val());

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

0 comments on commit 5d1b14a

Please sign in to comment.