From f089f41e50c626267a70ad21f001ab5ce03560d3 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 20 Sep 2017 14:34:06 -0700 Subject: [PATCH] (stable) Update an old SSH redirect URI when editing a bot's SSH keys Summary: See PHI79. When you edit another user's SSH keys (normally, for a bot account) we currently redirect you to an older URI. Test Plan: - Viewed a bot's profile page. - Clicked "Edit Settings" on the Manage page. - Went to "SSH Keys". - Uploaded an SSH key. - Before: redirected to a 404 after finishing the workflow. - After: redirected to the same page after the workflow. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D18633 --- src/applications/people/storage/PhabricatorUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php index a3ec42213a..166feaa237 100644 --- a/src/applications/people/storage/PhabricatorUser.php +++ b/src/applications/people/storage/PhabricatorUser.php @@ -1390,7 +1390,7 @@ final class PhabricatorUser return '/settings/panel/ssh/'; } else { // Otherwise, take them to the administrative panel for this user. - return '/settings/'.$this->getID().'/panel/ssh/'; + return '/settings/user/'.$this->getUsername().'/page/ssh/'; } }