summaryrefslogtreecommitdiff
path: root/site/app/Http/Controllers/SearchController.php
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/Http/Controllers/SearchController.php')
-rw-r--r--site/app/Http/Controllers/SearchController.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/site/app/Http/Controllers/SearchController.php b/site/app/Http/Controllers/SearchController.php
index bb79bae..45014d3 100644
--- a/site/app/Http/Controllers/SearchController.php
+++ b/site/app/Http/Controllers/SearchController.php
@@ -68,7 +68,14 @@ class SearchController extends Controller {
#$data = DB::table('whisky_view')->orderBy('procent', 'DESC')->limit(100)->simplePaginate(20);
#var_dump($data); exit;
- return view('search', ['data' => $data, 'search_phrase' => $query ]);
+ $query_string = "";
+ $query_params = Input::get();
+ foreach( $query_params as $key => $value) {
+ $query_string .= "&" . $key . "=" . $value;
+ }
+ $query_string = ltrim($query_string, "&");
+
+ return view('search', ['data' => $data, 'search_phrase' => $query, 'rss_feed' => '/search/feed/?' . $query_string ]);
}
private function escapeLike($string) {