@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 19 lines 483 B view raw
1<?php 2 3final class PhabricatorPhurlShortURLController 4 extends PhabricatorPhurlController { 5 6 public function shouldRequireLogin() { 7 return false; 8 } 9 10 public function handleRequest(AphrontRequest $request) { 11 $viewer = $this->getViewer(); 12 $append = $request->getURIData('append'); 13 $main_domain_uri = PhabricatorEnv::getProductionURI('/u/'.$append); 14 15 return id(new AphrontRedirectResponse()) 16 ->setIsExternal(true) 17 ->setURI($main_domain_uri); 18 } 19}