Link creation in hook