Fix announcement pagination in front-end

This commit is contained in:
Christophe Vilayphiou committed 2012-03-07 18:16:59 +08:00
1 parent 0b1f83c042
commit 4dd9b7ffa4
6 files changed
+12 -9

No files matched your search

+5 -1
View File
@@ -30,7 +30,11 @@ class PagesController < ApplicationController
end
def index_from_link
redirect_to "/#{@item.full_name}"
if params[:page]
redirect_to "/#{@item.full_name}?page=#{params[:page]}"
else
redirect_to "/#{@item.full_name}"
end
end
def show_from_link