Skip to content

Commit e7d3497

Browse files
author
epriestley
committed
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
1 parent 911d02e commit e7d3497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/applications/project/controller/PhabricatorProjectController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function buildLocalNavigation(PhabricatorProject $project) {
2424

2525
$external_arrow = "\xE2\x86\x97";
2626
$tasks_uri = '/maniphest/view/all/?projects='.$project->getPHID();
27-
$slug = PhabricatorSlug::normalize($project->getName());
27+
$slug = PhabricatorSlug::normalize($project->getPhrictionSlug());
2828
$phriction_uri = '/w/projects/'.$slug;
2929

3030
$edit_uri = '/project/edit/'.$id.'/';

0 commit comments

Comments
 (0)