Redirect /?query= to /search?query=
This commit is contained in:
parent
82b6e05dc4
commit
315d1dab54
2 changed files with 8 additions and 0 deletions
|
@ -97,6 +97,8 @@ class SiteController < ApplicationController
|
|||
redirect_to relation_path(params[:relation])
|
||||
elsif params[:note]
|
||||
redirect_to browse_note_path(params[:note])
|
||||
elsif params[:query]
|
||||
redirect_to search_path(:query => params[:query])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue