Commit b9298318 authored by Phil Höfer's avatar Phil Höfer
Browse files

Apply Newtab Setting

parent 35ae0b5f
......@@ -1146,7 +1146,7 @@ class MetaGer
$this->newtab = "_self";
}
if ($request->filled("key") && $request->input('key') === getenv("mainz_key")) {
$this->newtab = "_blank";
$this->newtab = "_top";
}
# Theme
$this->theme = preg_replace("/[^[:alnum:][:space:]]/u", '', $request->input('theme', 'default'));
......
......@@ -5,7 +5,7 @@
@if( isset($result->price) && $result->price != 0)
<span class="result-price">{!! $result->price_text !!}</span>
@endif
<a href="{{ $result->link }}" @if($metager->isFramed())target="_top"@endif rel="noopener">
<a href="{{ $result->link }}" target="{{ $metager->newtab }}" rel="noopener">
{!! $result->titel !!}
</a>
</h2>
......@@ -16,7 +16,7 @@
@endif
</div>
<div class="result-subheadline">
<a class="result-link" href="{{ $result->link }}" title="{{ $result->anzeigeLink }}" rel="noopener" @if($metager->isFramed())target="_top"@endif tabindex="-1">
<a class="result-link" href="{{ $result->link }}" title="{{ $result->anzeigeLink }}" rel="noopener" target="{{ $metager->newtab }}" tabindex="-1">
{{ $result->anzeigeLink }}
</a>
@if( isset($result->partnershop) && $result->partnershop === TRUE)
......
Supports Markdown
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