public function getRedirectFor(Request $request)
    {
        $this->request = $request;

        collect($this->getRedirectedUrls())->each(function ($redirects, $missingUrl) {
            $this->router->get($missingUrl, function () use ($redirects) {
                return redirect()->to(
                    $this->determineRedirectUrl($redirects),
                    $this->determineRedirectStatusCode($redirects)
                );
            });
        });

        try {
            return $this->router->dispatch($request);
        }
        catch (\Exception $e) {
            return null;
        }
    }