Fix announcement pagination in front-end

This commit is contained in:
Christophe Vilayphiou committed 2012-03-01 10:58:31 +08:00
1 parent ebf3a2eae4
commit 9ae140204f
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