From b1f4a974fe035915cc26041077578d11515ed714 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 22 Jun 2018 04:57:51 -0700 Subject: [PATCH] Fix two minor breadcrumb issues in Config Summary: Fixes T13159. Two issues here: - When viewing a particular config setting, there's an extra "Config" crumb. - On the page for a config group, the link to the parent group has an extra "/config/" in it. Test Plan: - Viewed a page for a particular setting, no longer saw an extra "Config" crumb. - Viewed a page for a setting group, clicked parent crumb, got taken to a real page. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13159 Differential Revision: https://secure.phabricator.com/D19501 --- .../config/controller/PhabricatorConfigEditController.php | 1 - .../config/controller/PhabricatorConfigGroupController.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/applications/config/controller/PhabricatorConfigEditController.php b/src/applications/config/controller/PhabricatorConfigEditController.php index 06df0de889..37f7db6c7c 100644 --- a/src/applications/config/controller/PhabricatorConfigEditController.php +++ b/src/applications/config/controller/PhabricatorConfigEditController.php @@ -231,7 +231,6 @@ final class PhabricatorConfigEditController $box_header[] = $key; $crumbs = $this->buildApplicationCrumbs(); - $crumbs->addTextCrumb(pht('Config'), $this->getApplicationURI()); if ($group) { $crumbs->addTextCrumb($group->getName(), $group_uri); } diff --git a/src/applications/config/controller/PhabricatorConfigGroupController.php b/src/applications/config/controller/PhabricatorConfigGroupController.php index 920b2092ac..7068ddaecc 100644 --- a/src/applications/config/controller/PhabricatorConfigGroupController.php +++ b/src/applications/config/controller/PhabricatorConfigGroupController.php @@ -30,7 +30,7 @@ final class PhabricatorConfigGroupController $view = $this->buildConfigBoxView($box_header, $list); $crumbs = $this->buildApplicationCrumbs() - ->addTextCrumb($group_name, $this->getApplicationURI($group_uri)) + ->addTextCrumb($group_name, $group_uri) ->addTextCrumb($options->getName()) ->setBorder(true);