Add “return page” to “create reply” form.
[Sone.git] / src / main / resources / templates / include / viewPost.html
index edd5368..c40047d 100644 (file)
@@ -30,6 +30,7 @@
                <div class="create-reply">
                        <form method="post" action="createReply.html">
                                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+                               <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                                <input type="hidden" name="post" value="<% post.id|html>" />
                                <input type="text" class="reply-input" name="text" value="" />
                                <button type="submit"><%= View.Post.SendReply|l10n|html></button>