Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

s.getPreviousValue(s.pageName,'gpv_pn') returning the current pagename

aishwaryas55963
Level 1
Level 1

Hi,

Iam trying to fetch the previous page name and iam using s.getPreviousValue(s.pageName,'gpv_pn') function under the s.doPlugins section.

I noticed(while debugging in browser console) that the function is being called twice.

Iam using console.log to display the previous page name in the browser console.

It displays the correct previous page at first in the console and immediately overwrites it with the current page name.

Could someone help me figure out why that is happening and how i can get this fixed?

Thanks in advance

0 Replies