Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/engine/PhabricatorJumpNavHandler.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | foreach ($patterns as $pattern => $effect) { | ||||
$uri = '/diffusion/'.head($repositories)->getCallsign().'/'; | $uri = '/diffusion/'.head($repositories)->getCallsign().'/'; | ||||
} else { | } else { | ||||
// More than one match, jump to search. | // More than one match, jump to search. | ||||
$uri = urisprintf('/diffusion/?order=name&name=%s', $name); | $uri = urisprintf('/diffusion/?order=name&name=%s', $name); | ||||
} | } | ||||
return id(new AphrontRedirectResponse())->setURI($uri); | return id(new AphrontRedirectResponse())->setURI($uri); | ||||
case 'create-task': | case 'create-task': | ||||
return id(new AphrontRedirectResponse()) | return id(new AphrontRedirectResponse()) | ||||
->setURI('/maniphest/task/create/?title=' | ->setURI('/maniphest/editpro/?title=' | ||||
.phutil_escape_uri($matches[1])); | .phutil_escape_uri($matches[1])); | ||||
default: | default: | ||||
throw new Exception(pht("Unknown jump effect '%s'!", $effect)); | throw new Exception(pht("Unknown jump effect '%s'!", $effect)); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |