Add "flag" text to query string