Fix ajax for link logout.