import wixLocation from 'wix-location';
import { session } from 'wix-storage'; //if you want it to stay after the user has left use local instead of session
$w.onReady(function () {
let path = wixLocation.path //not the full url just everything after the first /
let sBreadtrail = session.getItem('breadtrail')
if (sBreadtrail !== null) {
let aBreadtrail = JSON.parse(sBreadtrail) //string to array
aBreadtrail.push(path)
sBreadtrail = JSON.stringify(aBreadtrail)
} else {
sBreadtrail = JSON.stringify([path])
}
session.setItem('breadtrail', sBreadtrail)
});
top of page
Accountability catch up
check in with your coach
Check out our availability and book the date and time that works for you