protected function normalizeRoutePath($routePath)
    {
        $routePath = Reaction::$app->getAlias((string) $routePath);
        if (strncmp($routePath, '/', 1) === 0) {
            // absolute route
            return $routePath;
        }

        $route = $this->app->getRoute();

        // relative route
        if ($route === null || $route->controller === null) {
            throw new InvalidArgumentException("Unable to resolve the relative route: $routePath. No active controller is available.");
        }

        return $routePath === '' ? $route->getRoutePath(true) : $route->controller->group() . '/' . $routePath;
    }