Title: Problem with reset link URL when using query params
Last modified: February 24, 2020

---

# Problem with reset link URL when using query params

 *  Resolved [lleitner](https://wordpress.org/support/users/lleitner/)
 * (@lleitner)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-reset-link-url-when-using-query-params/)
 * Hello,
    we’re using the plugin on a customer website which makes use of query
   parameters for defining the page language (e.g. [http://www.company.com?lang=en](http://www.company.com?lang=en)).
   When a user now requests a password reset email the link in the e-mail is generated
   like this: [http://www.company.com](http://www.company.com)**?lang=fr?somresetpass**
   =true&somfrp_action=rp&key….. which leads to an error (user is not able to reset
   his password).
 * As far as I can see one would have to fix this by changing the part where this
   URL is generated (in somfrp-functions.php around line 354).
    `$reset_url = esc_url_raw(
   som_get_lost_password_url() . "?somresetpass=true&somfrp_action=rp&key=$key&login
   =" . rawurlencode( $user_login ) );` It should check if the som_get_lost_password_url()
   function gives you an URL with an ? inside or not. If so there should be a & 
   before somresetpass=true&somfrp_action=rp
 * Thanks and best regards,
    Lukas

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Richard Webster](https://wordpress.org/support/users/rwebster85/)
 * (@rwebster85)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-reset-link-url-when-using-query-params/#post-12476284)
 * Hi mate well spotted, an oversight on my part. I’m working on an update now and
   will wait to include a fix for this.
 *  Plugin Author [Richard Webster](https://wordpress.org/support/users/rwebster85/)
 * (@rwebster85)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/problem-with-reset-link-url-when-using-query-params/#post-12519064)
 * Now fixed in version 1.1.91 🙂
 *  [Jess](https://wordpress.org/support/users/jamiesc/)
 * (@jamiesc)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/problem-with-reset-link-url-when-using-query-params/#post-12965748)
 * Hi, its not fixed with your latest version..

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with reset link URL when using query params’ is closed to new
replies.

 * ![](https://ps.w.org/frontend-reset-password/assets/icon-256x256.png?rev=3445607)
 * [Frontend Reset Password](https://wordpress.org/plugins/frontend-reset-password/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontend-reset-password/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontend-reset-password/)
 * [Active Topics](https://wordpress.org/support/plugin/frontend-reset-password/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontend-reset-password/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontend-reset-password/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jess](https://wordpress.org/support/users/jamiesc/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/problem-with-reset-link-url-when-using-query-params/#post-12965748)
 * Status: resolved