# Return from Paypal to last page

**URL:** <https://forums.realmacsoftware.com/t/return-from-paypal-to-last-page/30777>\
**Category:** RapidWeaver Classic\
**Created:** [January 21, 2020, 6:25am UTC](https://forums.realmacsoftware.com/t/return-from-paypal-to-last-page/30777 "2020-01-21T06:25:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Plantsman](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@Plantsman](https://forums.realmacsoftware.com/u/Plantsman)\
**Post date:** [January 21, 2020, 6:25am UTC](https://forums.realmacsoftware.com/t/return-from-paypal-to-last-page/30777/1 "2020-01-21T06:25:31Z")

</div>

I have a website using the Paypal hosted buttons. I have added a variable to the Paypal button that takes the user back to my catalogue page when continue shopping is clicked. The variable is shopping\_url=https://wadaisies.com/catalogue/ It works fine but what I would really like is to return the user to the last page they were looking at before heading to Payapl. Is there a means of doing that?  
Thanks John

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [January 21, 2020, 11:45am UTC](https://forums.realmacsoftware.com/t/return-from-paypal-to-last-page/30777/2 "2020-01-21T11:45:02Z")

</div>

Not sure how you put the URL into the shopping url.

The only way I can think of to get to the previous page would be JavaScript DOM history.

[https://www.w3schools.com/jsref/met\_his\_back.asp](https://www.w3schools.com/jsref/met_his_back.asp)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [February 20, 2020, 9:45pm UTC](https://forums.realmacsoftware.com/t/return-from-paypal-to-last-page/30777/3 "2020-02-20T21:45:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
