Fix sammy routing for agreement search and update server side files for it.