public function execute(Framework $framework, RequestAbstract $request, Response $response, $value = null)
    {
        if (!($request instanceof WebRequest)) {
            return $value;
        }
        
        $fullUrl = $request->getRequestedUrl();
        
        $urlParts = parse_url($fullUrl);
        
        if ($urlParts == false) {
            return $value;
        }
        
        $urlParts = $this->verifyPath($urlParts);
        $completeUrl = $response->buildUrl($urlParts);

        if ($completeUrl !== $request->getRequestedUrl()) {
            $response->redirectTo($completeUrl);
            return null;
        }
        
        return $value;
    }