Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] persist query string parameters when redirecting #4

Open
brayniverse opened this issue Jul 4, 2017 · 0 comments
Open

[feature] persist query string parameters when redirecting #4

brayniverse opened this issue Jul 4, 2017 · 0 comments

Comments

@brayniverse
Copy link
Owner

There are use cases where you would want to maintain the query string parameters when redirecting. For example, keeping Google Analytics UTM parameters.

I'm not sure how to do this yet other than the following, but this doesn't feel like the best way.

$query = request()-->all();

if (count($query)) {
    $destination .= '?' . http_build_query_string($query);
}

Ultimately I'd like to just pass everything over to the new request headers et al.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant