s.getPreviousValue(s.pageName,'gpv_pn') returning the current pagename | Community
Skip to main content
September 2, 2019
Question

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

  • September 2, 2019
  • 0 replies
  • 1408 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.