Commit b83883e8 authored by Maik Messerschmidt's avatar Maik Messerschmidt
Browse files

Add GET-parameters to experiment redirect.

parent f0bb28ce
......@@ -44,5 +44,16 @@ Route::middleware(['web', 'auth'])->group(function() {
* Redirect to the experiment.
Route::get('/', function () {
return redirect('/experiment/index.html');
// Append existing GET-Parameters to the redirect route.
// If you know a simpler way for this, let me know.
// I couldn't find any for unnamed routes...
$query = request()->query();
if ($query)
$url = '/experiment/index.html?' . http_build_query($query);
$url = '/experiment/index.html';
return redirect($url);
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