Hi.
I would like to make a checks-plugin where one can click a link on a CheckRun to jump straight to the diff of affected source code, with path, and line-no.
Every line of a change has a url like changenr/PS/file#linenoe, so i tried using url attribute of a CheckRun but they always open in new tab.
I've also tried using action attribute and in the callback write straight to document.location, which sortof works but it reloads the whole page and is not as fast as normal navigation in the Gerrit UI.
Browsing through the source code i found a function GerritNav.navigateToDiff, but didn't find any way to access this via the plugins API. Is this possible or is there any other way one should do this? There was also a window["page"].show possible to use, which seems to be what GerritNav uses under the hood but it also seem to reload the whole page and doesn't provide the convenience url builder functions..