add support for redirects in API & solr component