mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
get rid of nonsense 404.html
correct 404 handling for invalid pages
This commit is contained in:
@@ -286,6 +286,9 @@ class TopicView
|
||||
post_count = (filtered_post_ids.length - 1)
|
||||
|
||||
max = [max, post_count].min
|
||||
|
||||
return @posts = [] if min > max
|
||||
|
||||
min = [[min, max].min, 0].max
|
||||
|
||||
@index_offset = min
|
||||
|
||||
Reference in New Issue
Block a user