sparouter: select the pages and links.