Remember application state on login (issue #20)
Change-Id: Ie72bb05ee53080986749e74b87fc4f71b343c270
diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep
index 78ed722..f1e993a 100644
--- a/templates/layouts/main.html.ep
+++ b/templates/layouts/main.html.ep
@@ -35,6 +35,7 @@
<legend><span><%= loc 'login' %></span></legend>
%= csrf_field
%= text_field 'handle_or_email', placeholder => loc('userormail')
+ %= hidden_field fwd => $c->url_with
<div>
%= password_field 'pwd', placeholder => loc('pwd')
<button type="submit"><span><%= loc 'go' %></span></button>