diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-09-03 09:02:42 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-09-03 09:02:42 +0100 |
commit | a79be3df0fddf2763376033cf731f0efbc915fcf (patch) | |
tree | 579d895b44d90c606dc29d718ac5008f69a4fc1e /app/controllers/general_controller.rb | |
parent | 547394f4aa7d48b42b14a4b08c98e3c60a33db46 (diff) |
Show the right thing in the UI (i.e. the query, and "all" filter) to users for a search URL like "/search/dog"
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 6b4683881..ada891ce9 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -161,8 +161,13 @@ class GeneralController < ApplicationController @requests = false @users = true end + else + @variety_postfix = "all" end @query = combined.join("/") + if params[:query].nil? + params[:query] = @query + end @inputted_sortby = @sortby @common_query = get_tags_from_params if @sortby.nil? |