getUri()); $url = str_replace('/spa', '', $url); $url .= ':'.self::SPA_PORT; return $url; } /** * @Route("/spa",methods={"GET"}) * * @return Response */ public function spa(Request $request): RedirectResponse { return new RedirectResponse($this->getSpaUrl($request)); } }