mirror of
https://github.com/discourse/discourse.git
synced 2026-08-10 04:58:31 -05:00
FIX: Keep around the page when redirecting
This commit is contained in:
@@ -439,6 +439,9 @@ class TopicsController < ApplicationController
|
||||
url << "/#{post_number}" if post_number.to_i > 0
|
||||
url << ".json" if request.format.json?
|
||||
|
||||
page = params[:page].to_i
|
||||
url << "?page=#{page}" if page != 0
|
||||
|
||||
redirect_to url, status: 301
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user