Rewrite links