urlPrefix needed in variable outside function scope
Passing the urlPrefix through the SearchView and ItemView

Needs to be in the ItemView as this templates creates the <a>'s in search results.
Added missing 'this'