# 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:** 8

<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, 8:09am UTC](https://meta.discourse.org/t/redirect-after-login-loses-query-params/121178/8 "2019-06-27T08:09:57Z")

</div>

Note that redirect with query params survives login flow for `http://localhost:9292/new-topic?title=beta`. Relevant code can be found here:

> <https://github.com/discourse/discourse/blob/102be5a9e3a063bebe6a62927a102f84904a9bdf/app/assets/javascripts/discourse/routes/new-topic.js.es6#L58-L60>

@emanuele I will need more details.

- What login method are you using (email/password, social, sso, etc)?
- Can you provide a sample URL with query param?
- Is your plugin live? Can I test it on my local instance?

Feel free to PM me above details.

---

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