Hi! ![]()
On the dynamic repeater page:
import wixLocation from 'wix-location';
export function repeater1_itemClick(event) {
// Get the page number from the event object
const pageNumber = event.context.page;
// Navigate to the dynamic item page, including the page number as a query parameter
wixLocation.to(`/dynamic-item-page?page=${pageNumber}`);
}
On the dynamic item page:
import wixLocation from 'wix-location';
export function backButton_click(event) {
// Get the page number from the query parameter
const pageNumber = wixLocation.query.page;
// Navigate to the dynamic repeater page, including the page number as a query parameter
wixLocation.to(`/dynamic-repeater-page?page=${pageNumber}`);
}
On the dynamic repeater page:
import wixLocation from 'wix-location';
$w.onReady(() => {
// Get the page number from the query parameter
const pageNumber = wixLocation.query.page;
// Set the page property of the repeater to the page number
$w('#repeater1').page = pageNumber;
});