Commit b047ee06 authored by Dominik Hebeler's avatar Dominik Hebeler

Merge branch '954-remove-hostname-from-opensearch-template' into 'development'

Resolve "Remove Hostname from Opensearch Template"

Closes #954

See merge request !1567
parents 563f0054 695ff9ae
......@@ -83,7 +83,6 @@ class StartpageController extends Controller
$response = Response::make(
view('plugin')
->with('link', $link)
->with('hostname', gethostname())
, "200");
$response->header('Content-Type', "application/opensearchdescription+xml");
return $response;
......
<?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 ({{ $hostname }})</ShortName>
<ShortName>@if(env('APP_ENV', '') === "production") MetaGer @else MetaGer (Entwicklungsversion) @endif</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>
......
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