S
S
Sergey Beloventsev2019-09-17 23:50:42
Yii
Sergey Beloventsev, 2019-09-17 23:50:42

Why is a link to the site formed in some strange way?

I create a link to the site to send a password recovery email in this way

Url::to([\Yii::$app->params['homeUrl'].$this->routes[$this->type], 'id' => $this->user_id, 'code' => $this->code], true);

where is the absolute address of the site for example site.lc but for some reason I get the address /user/site.lc/reset-password?id=28&code=jiPOdbdEWZ40pmQr... where /user is the module from which the letter is generated . What am I doing wrong ? \Yii::$app->params['homeUrl']

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question