# Lock 11 for web is removing URL Parameters

**URL:** <https://community.auth0.com/t/lock-11-for-web-is-removing-url-parameters/12263>\
**Category:** Get Help\
**Tags:** webauth, lock\
**Created:** [June 12, 2018, 10:49am UTC](https://community.auth0.com/t/lock-11-for-web-is-removing-url-parameters/12263 "2018-06-12T10:49:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoutapp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shoutapp/32/10120_2.png) [@shoutapp](https://community.auth0.com/u/shoutapp)\
**Post date:** [June 12, 2018, 10:49am UTC](https://community.auth0.com/t/lock-11-for-web-is-removing-url-parameters/12263/1 "2018-06-12T10:49:40Z")

</div>

Lock 11 for web is removing URL Parameters.

Say we have an app at **[www.myapp.com/app.html?food=cheese](http://www.myapp.com/app.html?food=cheese)**

and we go through Lock V11 for web authentication, when it successfully authenticates, the page it loads is just **[应用宝官网-全网最新最热手机应用游戏下载](http://www.myapp.com/app.html)** without the URL parameter. (Note if you press the ‘previously logged in as’ button, it will keep the parameters)

I’ve tried adding  
this.lockOptions = {  
auth: {  
redirectUrl: window.location.href  
},

which does work in that it redirects to the page with the parameters, however it seems to not hit this listener in that case:  
this.lock.on(“authenticated”, $.proxy(this.onLockAuthenticated, this));  
which means we aren’t hitting our own code that saves the user credentials and therefore it just loads the login page in a loop.

I was on Lock 11.2.2, and I’ve just tried 11.7.2.

How can we ensure that Lock for Web loads the page with URL parameters after authentication?

---

<div class="post-metadata">

**Author:** ![shoutapp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shoutapp/32/10120_2.png) [@shoutapp](https://community.auth0.com/u/shoutapp)\
**Post date:** [June 12, 2018, 11:29am UTC](https://community.auth0.com/t/lock-11-for-web-is-removing-url-parameters/12263/2 "2018-06-12T11:29:39Z")

</div>

Looks like this is solvable with the following lock configuration option, although I have no idea why:

```
  auth: {
    redirect: false
  }

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 17, 2018, 10:44am UTC](https://community.auth0.com/t/lock-11-for-web-is-removing-url-parameters/12263/3 "2018-12-17T10:44:33Z")

</div>


