[Bps-public-commit] r17381 - sd/trunk/lib/App/SD/Server

jesse at bestpractical.com jesse at bestpractical.com
Fri Dec 26 19:38:29 EST 2008


Author: jesse
Date: Fri Dec 26 19:38:29 2008
New Revision: 17381

Modified:
   sd/trunk/lib/App/SD/Server/Dispatcher.pm

Log:
* redirect to the view page after posting to the edit page

Modified: sd/trunk/lib/App/SD/Server/Dispatcher.pm
==============================================================================
--- sd/trunk/lib/App/SD/Server/Dispatcher.pm	(original)
+++ sd/trunk/lib/App/SD/Server/Dispatcher.pm	Fri Dec 26 19:38:29 2008
@@ -32,6 +32,14 @@
 
 };
 
+
+under 'POST' => sub {
+on 'records' => sub { next_rule(); };
+    on qr'^issue/([\w\d-]+)/edit$' => sub { shift->server->_send_redirect(to => '/issue/'.$1); };
+    on qr'^(.*)$' => sub { shift->server->_send_redirect(to => $1); }
+};
+
+
 under 'GET' => sub {
     on qr'^milestone/([\w\d-]+)$' => sub {
         my $milestone = $1;



More information about the Bps-public-commit mailing list