summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-22 01:48:28 +0100
committerAlex Legler <alex@a3li.li>2015-02-22 01:48:28 +0100
commitfd64b3e0ee9c92ea18e77190ff6d9bf0e404572c (patch)
tree5e5a7a033fd8af6af913b6eaa7f254b614b0daec
parentless redirection magic (diff)
downloadfrontend-fd64b3e0ee9c92ea18e77190ff6d9bf0e404572c.tar.gz
frontend-fd64b3e0ee9c92ea18e77190ff6d9bf0e404572c.tar.bz2
frontend-fd64b3e0ee9c92ea18e77190ff6d9bf0e404572c.zip
and a slash
-rw-r--r--ag-web.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ag-web.rb b/ag-web.rb
index 63d194f..ef326c8 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -107,7 +107,7 @@ get '/:list/threads/:year-:month/:page?' do
max_pages = (result['hits']['total'].to_f / PER_PAGE).ceil
if result['hits']['total'] == 0
- redirect "/%s/messages/%s-%s?no_threads=1" % [params[:list], params[:year], params[:month]]
+ redirect "/%s/messages/%s-%s/?no_threads=1" % [params[:list], params[:year], params[:month]]
return
end