import wixLocation from 'wix-location';
import { session } from 'wix-storage';
$w.onReady(function () { let path = wixLocation.path
let sBreadtrail = session.getItem('breadtrail')
if (sBreadtrail !== null) {
let aBreadtrail = JSON.parse(sBreadtrail);
aBreadtrail.push(path);
sBreadtrail = JSON.stringify(aBreadtrail); } else {
sBreadtrail = JSON.stringify([path]); }
session.setItem('breadtrail', sBreadtrail);
});