public function createUrl($params)
    {
        $response = $this->internalCreateUrl($params);

        if ($this->contextNavItemId) {
            return $this->urlReplaceModule($response, $this->contextNavItemId, $this->getComposition());
        }

        return $response;
    }
public function createUrl($params)
    {
        $response = $this->internalCreateUrl($params);

        if ($this->contextNavItemId) {
            return $this->urlReplaceModule($response, $this->contextNavItemId, $this->getComposition());
        }

        return $response;
    }
public function createUrl ( $ params ) { $ response = $ this -> internalCreateUrl ( $ params ) ; if ( $ this -> contextNavItemId ) { return $ this -> urlReplaceModule ( $ response , $ this -> contextNavItemId , $ this -> getComposition ( ) ) ; } return $ response ; }
Extend createUrl method by verify its context implementation to add cms urls prepand to the requested createurl params.

From the original create url function of Yii:

You may specify the route as a string, e.g., `site/index`. You may also use an array
if you want to specify additional query parameters for the URL being created. The
array format must be:

```php
// generates: /index.php?r=site%2Findex&param1=value1&param2=value2
['site/index', 'param1' => 'value1', 'param2' => 'value2']
```

If you want to create a URL with an anchor, you can use the array format with a `#` parameter.
For example,

```php
// generates: /index.php?r=site%2Findex&param1=value1#name
['site/index', 'param1' => 'value1', '#' => 'name']
```

The URL created is a relative one. Use [[createAbsoluteUrl()]] to create an absolute URL.

Note that unlike {{luya\helpers\Url::toRoute()}}, this method always treats the given route
as an absolute route.

@see \yii\web\UrlManager::createUrl()
@param string|array $params use a string to represent a route (e.g. `site/index`),
or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`).
@return string the created URL.
Extend createUrl method by verify its context implementation to add cms urls prepand to the requested createurl params .