Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate host info #141

Open
svs13 opened this issue Apr 16, 2021 · 0 comments
Open

Duplicate host info #141

svs13 opened this issue Apr 16, 2021 · 0 comments

Comments

@svs13
Copy link

svs13 commented Apr 16, 2021

$options['tmbURL'] = Yii::$app->request->hostInfo . Yii::getAlias('@web/'.$this->tmbPath);

$options['tmbURL'] = Yii::$app->request->hostInfo . Yii::$app->assetManager->getPublishedUrl(__DIR__) . '/' . $subPath;

if Yii::$app->assetManager->baseUrl === 'https://cdn.mysite.ru/asset/..' then
$options['tmbURL'] === 'https://mysite.ruhttps://cdn.mysite.ru/asset/..'

Please replace to
$options['tmbURL'] = Url::to(Yii::$app->assetManager->getPublishedUrl(__DIR__) . '/' . $subPath, true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant