slug = $data['slug']; } public function processRequest() { $slug = PhrictionDocument::normalizeSlug($this->slug); if ($slug != $this->slug) { $uri = PhrictionDocument::getSlugURI($slug); // Canonicalize pages to their one true URI. return id(new AphrontRedirectResponse())->setURI($uri); } $slug_info = 'Phriction page for '.phutil_escape_html($this->slug); return $this->buildStandardPageResponse( $slug_info, array( 'title' => 'Phriction', )); } }