2

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?

1 Answer 1

2

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

1
  • I need to access the page URL before that though.
    – Andrew
    Jul 1, 2021 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.