Previous and Next Buttons for a Dynamic Item Page

Hi, i copied the code here for next and previous buttons and it worked fine…checked it after few weeks and it stoped working…what can go wrong? here is the code, nothing changed…thanks!

Hi Eliran,

could you provide more details on what exactly is not working?
Are both the buttons disabled?
Are dynamicPageURLs correct?
Is the currentPageIndex good?

You can log intermediary values with console.log and then check them in the preview window.