If there is a root, take root as postfix for link queries