# Redirect after login loses query params

**URL:** <https://meta.discourse.org/t/redirect-after-login-loses-query-params/121178>\
**Category:** Development\
**Created:** [June 24, 2019, 3:57pm UTC](https://meta.discourse.org/t/redirect-after-login-loses-query-params/121178 "2019-06-24T15:57:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [June 27, 2019, 7:24am UTC](https://meta.discourse.org/t/redirect-after-login-loses-query-params/121178/7 "2019-06-27T07:24:23Z")

</div>

> [@emanuele](#):
>
> The redirection _to_ the login page works well, but after login, I get redirected to the correct controller but _without the query parameters_ I had in the original request.

I think it’s a bug in the core. I see a similar fix for SSO by @sam – [FIX: stop removing query params from destination url in sso · discourse/discourse@0b334cd · GitHub](https://github.com/discourse/discourse/commit/0b334cdf74e773f34d2cf7439d5118d248c342e3)

I will investigate and push a fix.

---

_[View the full topic](https://meta.discourse.org/t/redirect-after-login-loses-query-params/121178)._
