FIX: couldn't rewrite link if tag config is empty