Don't include 'toroot' path if the links are federated.

This was already accounted for in some places, but not all.

Diffs as a result of this are shown in this example: cl/194983697

bug: 79054293
test: make ds-docs
Change-Id: I24b2d2ba284c84f7f5d4e550c5eb837f6e2849af
(cherry picked from commit 709b1f646f0234ca939c4ef7cc8e93ac32b55579)
1 file changed