Skip to content
Snippets Groups Projects
Commit 469151b6 authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

Maps als Fokus leitet jetzt auf die entsprechende maps.metager suche

parent 843c463f
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -12,6 +12,12 @@ class MetaGerSearch extends Controller
public function search(Request $request, MetaGer $metager)
{
$focus = $request->input("focus", "web");
if ($focus === "maps") {
$searchinput = $request->input('eingabe', '');
return redirect()->to('https://maps.metager.de/map/' . $searchinput . '/1240908.5493525574,6638783.2192695495,6');
}
if ($focus !== "angepasst" && $this->startsWith($focus, "focus_")) {
$metager->parseFormData($request);
if ($metager->doBotProtection($request->input('bot', ""))) {
......
......@@ -241,9 +241,6 @@
<span class="content">{{ trans('index.foki.produkte') }}</span>
</label>
</div>
https://maps.metager.de/map/hannover/1240908.5493525574,6638783.2192695495,6
<div class="focus">
<input id="maps" class="focus-radio hide" type="radio" name="focus" value="maps" form="searchForm" @if ($focus === 'maps') checked @endif required="">
<label id="maps-label" class="focus-label" for="maps">
......@@ -251,7 +248,6 @@
<span class="content">{{ trans('index.foki.maps') }}</span>
</label>
</div>
{{-- Fix for older Versions --}}
@if ($focus === 'angepasst')
<div class="focus">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment