Fix links on main, closes #523
Fix linkToRemote helper