fix(tradein): PDF-ссылка через API_BASE_URL (basePath) #375

Merged
lekss361 merged 1 commit from fix/tradein-pdf-link-basepath into main 2026-05-21 07:16:12 +00:00

View file

@ -5,6 +5,7 @@
* Сравнение trade-in vs самостоятельная продажа + 4 преимущества + CTA.
*/
import type { AggregatedEstimate } from "@/types/trade-in";
import { API_BASE_URL } from "@/lib/api";
interface Props {
estimate: AggregatedEstimate;
@ -174,7 +175,7 @@ export function OfferCard({ estimate }: Props) {
</div>
<div className="offer-cta-buttons">
<a
href={`/api/v1/trade-in/estimate/${estimate.estimate_id}/pdf`}
href={`${API_BASE_URL}/api/v1/trade-in/estimate/${estimate.estimate_id}/pdf`}
download={`trade-in-${estimate.estimate_id}.pdf`}
className="btn btn-ghost"
>