replace self links client side