You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/03/30 21:22:22 UTC

[whimsy.git] [1/1] Commit 06406fc: for shane

Commit 06406fc6746416f1cc07c93a7c854c418f133935:
    for shane


Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>

------------------------------------------------------------
www/board/agenda/routes.rb                                   | +++++ 
------------------------------------------------------------
5 changes: 5 additions, 0 deletions.
------------------------------------------------------------


diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index 26e6b7a..4a00565 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -115,6 +115,11 @@
   _html :'main'
 end
 
+# append slash to agenda page if not present
+get %r{/(\d\d\d\d-\d\d-\d\d)$} do |date|
+  redirect to("/#{date}/")
+end
+
 # posted actions
 post '/json/:file' do
   _json :"actions/#{params[:file]}"