diff --git a/resources/views/plugin.blade.php b/resources/views/plugin.blade.php index 291bd6523266f209d72f2155ec4553d29dc20a47..d5d0ec5f1bbf420328deb71122b31db5a0c6c810 100644 --- a/resources/views/plugin.blade.php +++ b/resources/views/plugin.blade.php @@ -1,16 +1,20 @@ <?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 }}" method="{{$request}}"> - <Param name="eingabe" value="{searchTerms}" /> - @foreach($params as $key => $value) - <Param name="{{$key}}" value="{{$value}}" /> + <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> + @if ($request == "POST") + <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> + @endforeach + + </Url> + @else + <Url type="text/html" template="{{ $link }}?eingabe={searchTerms}@foreach($params as $key => $value)&{{$key}}={{$value}}@endforeach" method="{{$request}}" /> + @endif + <InputEncoding>UTF-8</InputEncoding> </OpenSearchDescription>