diff --git a/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php b/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php index db40c263ad..9c91adf17d 100644 --- a/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php +++ b/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php @@ -99,10 +99,13 @@ final class PhabricatorPhurlURLSearchEngine } protected function getNewUserBody() { + $create_uri = id(new PhabricatorPhurlURLEditEngine()) + ->getEditURI(); + $create_button = id(new PHUIButtonView()) ->setTag('a') ->setText(pht('Shorten a URL')) - ->setHref('/phurl/url/create/') + ->setHref($create_uri) ->setColor(PHUIButtonView::GREEN); $icon = $this->getApplication()->getIcon();