Page MenuHomePhabricator

Fix board links in TaskDetail
ClosedPublic

Authored by chad on Jun 13 2014, 8:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 1:05 AM
Unknown Object (File)
Fri, Dec 13, 12:18 AM
Unknown Object (File)
Tue, Dec 10, 7:30 PM
Unknown Object (File)
Sun, Dec 8, 3:17 PM
Unknown Object (File)
Sun, Dec 8, 1:21 PM
Unknown Object (File)
Sun, Dec 8, 7:25 AM
Unknown Object (File)
Fri, Dec 6, 1:16 PM
Unknown Object (File)
Fri, Dec 6, 6:35 AM
Subscribers

Details

Summary

Not sure if this is the correct fix, but I think it's where you intend to go?

Test Plan

Click on link in Task, get the the correct board. Click lots of links of boards and make sure everything still works.

Diff Detail

Repository
rP Phabricator
Branch
slug-avenue
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1067
Build 1067: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

chad retitled this revision from to Fix board links in TaskDetail.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.

This prevents a project from being called #board.

Instead, I think it's sufficient to replace tag/ with project/board/?

src/applications/maniphest/controller/ManiphestTaskDetailController.php
571

That is, just change this line?

Wouldn't I still need a route to translate the slug? I'm not good with routes.

Sorry, yeah, realized I am crazy. How about this?

src/applications/maniphest/controller/ManiphestTaskDetailController.php
570–573

Then this should just be $handle->getURI().'board/'?

src/applications/project/application/PhabricatorApplicationProject.php
82

Make this /slug/board/ instead of /board/slug/.

chad edited edge metadata.
  • Update per comments
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 13 2014, 9:01 PM
chad updated this revision to Diff 22821.

Closed by commit rPfefe5ae27c94 (authored by @chad).