# Dynamic password reset page based on query params

**URL:** <https://community.auth0.com/t/dynamic-password-reset-page-based-on-query-params/66211>\
**Category:** Get Help\
**Created:** [July 15, 2021, 10:39am UTC](https://community.auth0.com/t/dynamic-password-reset-page-based-on-query-params/66211 "2021-07-15T10:39:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![chinds](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chinds/32/25410_2.png) [@chinds](https://community.auth0.com/u/chinds)\
**Post date:** [July 16, 2021, 9:20am UTC](https://community.auth0.com/t/dynamic-password-reset-page-based-on-query-params/66211/4 "2021-07-16T09:20:55Z")

</div>

Thanks, so for others wondering this is what I have done.

In the `<script>` element at the bottom of the page template I added the following;

```auto
 var href = window.location.href
 var qsParams = href.substring(href.indexOf("#") + 1);
 var parsedQsParams = new URLSearchParams(qsParams);
 var isInvite = parsedQsParams.get('type') === "invite"

```

the `isInvite` var is then used in the `dict` below to set the content values e.g.

`title: isInvite ? "Set a password" : "Change Password",`

---

_[View the full topic](https://community.auth0.com/t/dynamic-password-reset-page-based-on-query-params/66211)._
