# Repeater element to dynamic page

**URL:** <https://forum.wixstudio.com/t/repeater-element-to-dynamic-page/23864>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [April 30, 2020, 9:02am UTC](https://forum.wixstudio.com/t/repeater-element-to-dynamic-page/23864 "2020-04-30T09:02:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ochoudhary](https://avatars.discourse-cdn.com/v4/letter/o/7feea3/32.png) [@ochoudhary](https://forum.wixstudio.com/u/ochoudhary)\
**Post date:** [April 30, 2020, 9:02am UTC](https://forum.wixstudio.com/t/repeater-element-to-dynamic-page/23864/1 "2020-04-30T09:02:15Z")

</div>

I am having problem with the repeater element where by clicking a button, it should take me to a dynamic page. The code looks pretty simple and it keeps saying linkToDynamicPage is not defined

import wixLocation **from** ‘wix-location’ ;  
$w( “#repeater1” ).onItemReady(($w, dataItem, index) =\> {  
**let** linkToDynamicPage = dataItem[“title”];  
});

$w( ‘#vectorImage2’ ).onClick(() =\> {  
[wixLocation.to(linkToDynamicPage);](wixLocation.to(linkToDynamicPage);  
})😉  
[});](wixLocation.to(linkToDynamicPage);  
})😉

---

<div class="post-metadata">

**Author:** ![ochoudhary](https://avatars.discourse-cdn.com/v4/letter/o/7feea3/32.png) [@ochoudhary](https://forum.wixstudio.com/u/ochoudhary)\
**Post date:** [April 30, 2020, 12:30pm UTC](https://forum.wixstudio.com/t/repeater-element-to-dynamic-page/23864/2 "2020-04-30T12:30:01Z")

</div>

You can visit Weekly page of msmtgroup.com
