Commit f81b1b7f authored by Dominik Hebeler's avatar Dominik Hebeler

Fehler im Plugin behoben, durch den ein POST als Einstellung nicht möglich war

parent 0a1e47ae
......@@ -110,11 +110,12 @@ class StartpageController extends Controller
array_forget($params, 'out');
array_forget($params, 'page');
array_forget($params, 'request');
$link = action('MetaGerSearch@search', $params);
$link = action('MetaGerSearch@search', []);
$response = Response::make(
view('plugin')
->with('link', $link)
->with('params', $params)
->with('request', $request), "200");
$response->header('Content-Type', "application/xml");
return $response;
......
<?xmlversion = "1.0"encoding = "UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>MetaGer</ShortName>
<Description>{{ trans('plugin.description') }}</Description>
<Contact>office@suma-ev.de</Contact>
<Image width="16" height="16" type="image/x-icon">{{ url('/favicon.ico') }}</Image>
<Url type="text/html" template="{{ $link }}&amp;eingabe={searchTerms}" method="{{$request}}"></Url>
<Url type="text/html" template="{{ $link }}" method="{{$request}}">
<Param name="eingabe" value="{searchTerms}" />
@foreach($params as $key => $value)
<Param name="{{$key}}" value="{{$value}}" />
@endforeach
</Url>
<InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment