diff --git a/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php b/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php index 3ddfb8bdf7..e7a3c7394b 100644 --- a/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php +++ b/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php @@ -49,9 +49,13 @@ final class PhabricatorPhurlURLEditor switch ($xaction->getTransactionType()) { case PhabricatorPhurlURLTransaction::TYPE_NAME: case PhabricatorPhurlURLTransaction::TYPE_URL: - case PhabricatorPhurlURLTransaction::TYPE_ALIAS: case PhabricatorPhurlURLTransaction::TYPE_DESCRIPTION: return $xaction->getNewValue(); + case PhabricatorPhurlURLTransaction::TYPE_ALIAS: + if (!strlen($xaction->getNewValue())) { + return null; + } + return $xaction->getNewValue(); } return parent::getCustomTransactionNewValue($object, $xaction);