login page will direct user to /loggedin/ instead of next
diff --git a/xos/templates/admin/login.html b/xos/templates/admin/login.html
index 634ed02..85ae8b3 100644
--- a/xos/templates/admin/login.html
+++ b/xos/templates/admin/login.html
@@ -48,7 +48,8 @@
{% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %}
{{ form.password }}
<input type="hidden" name="this_is_the_login_form" value="1" />
- <input type="hidden" name="next" value="{{ next }}" />
+ <input type="hidden" name="old_next" value="{{ next }}" />
+ <input type="hidden" name="next" value="/loggedin/?orig_next={{ next }}" />
</div>
<div class="submit-row">
<input type="submit" class="btn btn-info" value="{% trans 'SIGN IN' %}" />