posts: show search navbar for all users.
Include the "q" URL param (as in `/posts/1234?q=<search>`) on thumbnails for all users. Previously it was only for logged in users. This lets the next/previous post navbar beneath posts be used by logged out users.
This commit is contained in:
@@ -34,7 +34,7 @@ class PostPreviewComponent < ApplicationComponent
|
||||
def link_params
|
||||
link_params = {}
|
||||
|
||||
link_params["q"] = tags if tags.present? && !current_user.is_anonymous?
|
||||
link_params["q"] = tags if tags.present?
|
||||
link_params["pool_id"] = pool_id if pool_id
|
||||
link_params["favgroup_id"] = favgroup_id if favgroup_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user