dynamic handling of link for post