update dir link with smarty value