Repair subpage links going through redlink handling

Redlink handling was repointing subpage links to the root,
detect and fix.

Change-Id: I5c38d9f81fbf4c481156c6b547e09e5245bbef80
Merge "Repair subpage links going through redlink handling"