refactor url_filter and add #attachment_url