Well, I gave up trying to get code on the Site tab to work. Instead, I created a pageNavigation.js file in the /public folder with currentPage() and previousPage() functions (which set and get the session variables. Then I simply invoke these functions on every page where I need to know how the user got to that page. This works.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Go to previous page button | 3 | 1620 | August 6, 2018 | |
| Linking Variables Between Pages of the Same Site | 1 | 328 | June 24, 2018 | |
| how to transfer a url from page A to page B? | 10 | 150 | October 15, 2021 | |
| Option to capture URL parameters from previous page? | 3 | 777 | September 10, 2021 | |
| wixWindow.referrer; returning null | 1 | 487 | February 17, 2019 |