Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ARC-Support
public projects
lou-server
Commits
b83883e8
Commit
b83883e8
authored
Sep 29, 2021
by
Maik Messerschmidt
Browse files
Add GET-parameters to experiment redirect.
parent
f0bb28ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
routes/web.php
View file @
b83883e8
...
...
@@ -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
);
else
$url
=
'/experiment/index.html'
;
return
redirect
(
$url
);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment