3 final class PhabricatorPhurlURLAccessController
4 extends PhabricatorPhurlController
{
6 public function shouldAllowPublic() {
10 public function handleRequest(AphrontRequest
$request) {
11 $viewer = $this->getViewer();
12 $id = $request->getURIData('id');
13 $alias = $request->getURIData('alias');
16 $url = id(new PhabricatorPhurlURLQuery())
21 $url = id(new PhabricatorPhurlURLQuery())
23 ->withAliases(array($alias))
28 return new Aphront404Response();
31 if ($url->isValid()) {
32 return id(new AphrontRedirectResponse())
33 ->setURI($url->getLongURL())
34 ->setIsExternal(true);
36 return id(new AphrontRedirectResponse())->setURI('/'.$url->getMonogram());