fix(ui): Make diff line-number links relative to the diff page
Created by: plibither8
This PR spreads the entire location
object into the createLinkUrl()
function along with the hash/id of the line. Through this, since the pathname is also supplied along with any query params, the link's URL is now correctly pointing to the diff page, rather than the base URL /
.
Closes #37261 (closed)
Test plan
Manually tested by checking rendered links.
App preview:
Check out the client app preview documentation to learn more.