Move urlGenerator from search module to core module.
urlGenerator now accepts `contributor` parameter.