Make search code leverage the static page event context