// In Site tab import {session} from 'wix-storage'; import wixLocation from 'wix-location'; let previousPageURL; $w.onReady(function () { previousPageURL = session.getItem("page"); session.setItem("page", wixLocation.url); });
 

Thanks for submitting!