# How to retrieve the referrer URL in an Auth0 Post Login Action?

**URL:** <https://community.auth0.com/t/how-to-retrieve-the-referrer-url-in-an-auth0-post-login-action/151169>\
**Category:** Get Help\
**Tags:** extensibility, actions-extensibility\
**Created:** [November 7, 2024, 10:45pm UTC](https://community.auth0.com/t/how-to-retrieve-the-referrer-url-in-an-auth0-post-login-action/151169 "2024-11-07T22:45:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [November 12, 2024, 6:28pm UTC](https://community.auth0.com/t/how-to-retrieve-the-referrer-url-in-an-auth0-post-login-action/151169/3 "2024-11-12T18:28:04Z")

</div>

Hi @b.neugebauer,

There is not an out-of-the-box way to access the URL the user originally visited in an Action. I did a bit of testing and was able to access the URL in this (somewhat hacky) way:

In my React app, I am initializing Auth0 with the `acr_values` set to `window.location.origin`. Example:

```auto
const providerConfig = {
  domain: config.domain,
  clientId: config.clientId,
  cacheLocation: 'localstorage',
  authorizationParams: {
    redirect_uri: config.callbackURL,
    acr_values: `${window.location.origin}`
  },
};

```

In my Action, I can access `event.transaction.acr_values` and see an array with the initial `window.location.origin` URL. This is the result of console.logging the `event` object in my action:

![Screenshot 2024-11-12 at 12.27.28 PM](https://global.discourse-cdn.com/auth0/original/3X/0/6/06542f475f5040a1ba8046a76b8d56b8604d55ea.png)

Note that the above code is an example and should be tested in a development environment first before adding to production. Additionally, this may vary depending on the SDK you are using. I just used our React SDK as an example.

Please let me know if you have any additional questions or if you run into any issues!

Best,

Mary Beth

---

_[View the full topic](https://community.auth0.com/t/how-to-retrieve-the-referrer-url-in-an-auth0-post-login-action/151169)._
