Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / phurl / controller / PhabricatorPhurlShortURLController.php
blobb4f97d681326add70bc68f6851dabffd1e486c58
1 <?php
3 final class PhabricatorPhurlShortURLController
4 extends PhabricatorPhurlController {
6 public function shouldRequireLogin() {
7 return false;
10 public function handleRequest(AphrontRequest $request) {
11 $viewer = $this->getViewer();
12 $append = $request->getURIData('append');
13 $main_domain_uri = PhabricatorEnv::getProductionURI('/u/'.$append);
15 return id(new AphrontRedirectResponse())
16 ->setIsExternal(true)
17 ->setURI($main_domain_uri);