summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ag-web.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/ag-web.rb b/ag-web.rb
index 5ef3522..a37c2ec 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -101,7 +101,11 @@ get '/:list/' do
end
end
-get '/:list/(threads|messages)/?' do
+get '/:list/threads/?' do
+ redirect '/%s/' % [params[:list]], 301
+end
+
+get '/:list/messages/?' do
redirect '/%s/' % [params[:list]], 301
end