)]}'
{
  "commit": "22e3dcbf193b3cc3f72785749f3775b95fc24c40",
  "tree": "aeae2491dff1762cd48433bb3f68e0821eef667a",
  "parents": [
    "cb6e282b38b54ed0d2070559c3d09658d6fc60cb"
  ],
  "author": {
    "name": "Dariusz Luksza",
    "email": "dariusz.luksza@gmail.com",
    "time": "Mon Feb 26 10:44:00 2024 +0000"
  },
  "committer": {
    "name": "Dariusz Luksza",
    "email": "dariusz.luksza@gmail.com",
    "time": "Fri Mar 01 12:15:03 2024 +0000"
  },
  "message": "Redirect user to previously visited page after login\n\nWhen a user logs in from any page, it expectes to be back on the same\npage after the successful login. Gerrit\u0027s `/login` endpoint already\nsupports redirecting to the previously visited page, but that\ninformation was not forwarded from the frontend.\n\nTo update the `href` in the login URL, we need to subscribe for\n`nav-report` events. But as the event is emitted, before\n`window.location` is updated, we also need to delay reading of the\ncurrent browser URL, until all other events are processed. This way, by\nusing `setTimeout`, we can reliably update the login link `href`.\n\nBut: Issue 325838103\nChange-Id: Icc6498b48fac011a2bc2e92700ff216d781eb993\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3b53d47bcf3d7adf53e412894b4b7f3830215184",
      "old_mode": 33188,
      "old_path": "github-plugin/src/main/ts/gr-github-oauth-progress.ts",
      "new_id": "8ed9e0797fac0c437956abfd800638350b3c8484",
      "new_mode": 33188,
      "new_path": "github-plugin/src/main/ts/gr-github-oauth-progress.ts"
    }
  ]
}
