Direct repeater item to dynamic page

I thought that maybe I misunderstood, so I changed to this, but still no dice:

import {local} from ‘wix-storage’;

const linkField = “link-mobilestorytimekit-Kit-Info-title”; // replace this value

$w.onReady( function () {
$w(“#dataset1”).onReady(() => {
const numberOfItems = $w(“#dataset1”).getTotalCount();

$w("#dataset1").getItems(0, numberOfItems) 
  .then( (result) => {  

const dynamicPageURLs = result.items.map(item => item[linkField]);
local.setItem(‘dynamicPageURLs’, dynamicPageURLs);
} )
. catch ( (err) => {
console.log(err.code, err.message);
} );
} );
} );

$w(“#text47”).onClick( (event, $w) => {
let targetID = $w(“#dataset1”).getCurrentItem()[“link-mobilestorytimekit-Kit-Info-title”];
‘wixLocation.to(targetID);’ //
} );