Merge pull request 'fix(tradein): PDF-ссылка через API_BASE_URL (basePath)' (#375) from fix/tradein-pdf-link-basepath into main
All checks were successful
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Successful in 1m27s
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / deploy (push) Successful in 15s

This commit is contained in:
lekss361 2026-05-21 07:16:11 +00:00
commit 0a649850a0

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"
>