Add link reformat for query pages