Add “return page” to “create reply” form.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 20 Oct 2010 05:22:26 +0000 (07:22 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 20 Oct 2010 05:22:26 +0000 (07:22 +0200)
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>