Skip to content
Snippets Groups Projects
Commit ec956642 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed other redirect errors

parent 5f65a46f
No related branches found
No related tags found
No related merge requests found
......@@ -26,20 +26,23 @@ class MetaGerSearch extends Controller
}
if ($request->filled("chrome-plugin")) {
return redirect(LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/plugin"));
echo redirect(LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/plugin"));
return;
}
$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');
echo redirect()->to('https://maps.metager.de/map/' . $searchinput . '/1240908.5493525574,6638783.2192695495,6');
return;
}
# If there is no query parameter we redirect to the startpage
$eingabe = $request->input('eingabe', '');
if (empty(trim($eingabe))) {
return redirect(LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), '/'));
echo redirect(LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), '/'));
return;
}
# Mit gelieferte Formulardaten parsen und abspeichern:
......
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