Skip to content

Commit

Permalink
Edited line 12 on search_controller.rb (#11519)
Browse files Browse the repository at this point in the history
Removed (redirect_to '/search?q=' + params[:query])  and replaced it with (redirect_to "/search?q=#{params[:query]}") on line 12

Note: Brackets ( ) not included
  • Loading branch information
prius2055 authored Oct 21, 2022
1 parent 3496818 commit 674eb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def google

# a route to convert /search/_____ to /search?q=______ style search queries
def google_redirect
redirect_to '/search?q=' + params[:query]
redirect_to "/search?q=#{params[:query]}"
end

def notes
Expand Down

0 comments on commit 674eb78

Please sign in to comment.