<p>You can get the previous page (within the same site) with <code>{{ craft.app.request.referrer }}</code>.</p>

CC BY-SA 4.0
2021-07-01T13:06:41.717Z
I need to access the page URL before that though.
Andrew
CC BY-SA 4.0
2021-07-01T12:21:07.043Z
2021-07-01T12:21:07.043Z
Oli
<p>Is there a way to get the previous page URL to the current referring page?</p>
<p>(I mean the referring page to the referring page.)</p>
<p>Or is this only accessible via the browser history?</p>

<redirect>
Is there a way to get the previous page URL to the current referring page?
# Is there a way to get the previous page URL to the current referring page?

(Asked by: username_0 on 2021-07-01)

Is there a way to get the previous page URL to the current referring page?

(I mean the referring page to the referring page.)

Or is this only accessible via the browser history?

**Tags:** redirect

---

## 1 answers

### Answer by username_1 on 2021-07-01. Score: 3

You can get the previous page (within the same site) with `{{ craft.app.request.referrer }}`.

> **Comments:**
> **username_0**: I need to access the page URL before that though.  

---

