From 12fa6e9a4e18ce3df8218e8c4c89a05dff27ffc7 Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Sat, 9 Feb 2013 13:03:04 +0100 Subject: [PATCH] correct noscript link to next page --- app/controllers/topics_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index 61d7fbecb69..476cc29cd31 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -82,7 +82,7 @@ class TopicsController < ApplicationController last_post = @topic_view.posts[-1] if last_post.present? and (@topic_view.topic.highest_post_number > last_post.post_number) - @next_page = (@topic_view.posts[0].post_number / SiteSetting.posts_per_page) + 2 + @next_page = (@topic_view.posts[0].post_number / SiteSetting.posts_per_page) + 1 end store_preloaded("topic_#{@topic_view.topic.id}", MultiJson.dump(topic_view_serializer))