Issue #3409895 by acbramley, longwave, smustgrave: [regression] toUrl can...
Issue #3409895 by acbramley, longwave, smustgrave: [regression] toUrl can incorrectly return edit-form url when another link template shares the canonical url
(cherry picked from commit 9231c9cf)