When I do so, it returns this error: Uncaught TypeError: Can not read property 'url' of undefined supersized.js: 166

I did so but not resolved:

var newContentWrapper = $('<a href="' + base.options.slides[loadPrev][0].tooltips[1].url ? base.options.slides[loadPrev][0].tooltips[1].url : '#' + '" class="lightbox content-wrapper" rel="group-colecoes-anteriores"></a>');