From e7d34971e07cb3473ac096f7055c221be4478776 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 6 Mar 2013 13:34:46 -0800 Subject: [PATCH] Generate Phriction URI from saved Project slug, not project name Summary: We recently changed the slug normalization rules, so project names may now generate a different slug than they used to. We have the correct slug saved, though, so just use that. Test Plan: Created some projects with various names full of garbage and verified they link correctly. Reviewers: AnhNhan Reviewed By: AnhNhan CC: mbishopim3, aran Maniphest Tasks: T2632 Differential Revision: https://secure.phabricator.com/D5263 --- .../project/controller/PhabricatorProjectController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/project/controller/PhabricatorProjectController.php b/src/applications/project/controller/PhabricatorProjectController.php index 50ea7f23d8..c098f4e21b 100644 --- a/src/applications/project/controller/PhabricatorProjectController.php +++ b/src/applications/project/controller/PhabricatorProjectController.php @@ -24,7 +24,7 @@ abstract class PhabricatorProjectController extends PhabricatorController { $external_arrow = "\xE2\x86\x97"; $tasks_uri = '/maniphest/view/all/?projects='.$project->getPHID(); - $slug = PhabricatorSlug::normalize($project->getName()); + $slug = PhabricatorSlug::normalize($project->getPhrictionSlug()); $phriction_uri = '/w/projects/'.$slug; $edit_uri = '/project/edit/'.$id.'/';