Fix search in combination with rewrite enabled. Restore caption based URL for image special.