altered url/link code for smart-search results

Altered the url/link code for the smart-search plugin. This was needed
because if you were deleting a event you would expect it to be removed
from the index too.  It didn't because the url format was different. Now
it works as expected and it will be removed.