diff --git a/index.php b/index.php index 61c71ee..fd21082 100644 --- a/index.php +++ b/index.php @@ -74,7 +74,8 @@ $apiHost = $host ? (preg_match('#^https?://#', $host) ? rtrim($host, '/') : 'htt // После загрузки — на сайт по ключу загрузки (client_key): /api/images/public/claim кладёт её в сессию посетителя и ведёт // на /public/upscale. Сразу на /public/upscale нельзя: сессия кросс-доменной загрузки посетителю на сайте недоступна — 404. $redirect_url_base = ($apiHost ? $apiHost : '') . '/api/images/public/claim?key='; -$redirect_url_utm = http_build_query($get_params); +// свою метку key — нет: её значение перебило бы ключ загрузки в адресе claim +$redirect_url_utm = http_build_query(array_diff_key($get_params, ['key' => true])); $assetsUriPrefix = $config['assetsUriPrefix'] ?? ''; if ($assetsUriPrefix === '' && !is_dir(__DIR__ . '/images') && !empty($apiHost)) {