Update search index on routes change