Commit f7e635a7 by Don Mitchell

fix npe w/ prev commit

parent 4e3e2ec7
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
function(json) { function(json) {
if(json.success) { if(json.success) {
var next = /next=([^&]*)/g.exec(decodeURIComponent(window.location.search)); var next = /next=([^&]*)/g.exec(decodeURIComponent(window.location.search));
if (next.length > 1) { if (next && next.length > 1) {
location.href = next[1]; location.href = next[1];
} }
else location.href = "${reverse('homepage')}"; else location.href = "${reverse('homepage')}";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment