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/06 20:24:10 UTC
[whimsy.git] [2/2] Commit 3678875: cleanup redirect
Commit 3678875e0f8312263b2904f4c630f4b700a31dc8:
cleanup redirect
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 | + --
------------------------------------------------------------
3 changes: 1 additions, 2 deletions.
------------------------------------------------------------
diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index 8130cc0..5ecca68 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -14,8 +14,7 @@
# redirect root to latest agenda
get '/' do
agenda = dir('board_agenda_*.txt').sort.last
- response.headers['Location'] = "#{agenda[/\d+_\d+_\d+/].gsub('_', '-')}/"
- status 302
+ redirect to("/#{agenda[/\d+_\d+_\d+/].gsub('_', '-')}/")
end
# redirect missing to missing page for the latest agenda