Skip to content

fix: absolute URLs in customer orders filter and pagination#141

Merged
biz87 merged 3 commits intobetafrom
fix/customer-orders-reset-url
Mar 11, 2026
Merged

fix: absolute URLs in customer orders filter and pagination#141
biz87 merged 3 commits intobetafrom
fix/customer-orders-reset-url

Conversation

@biz87
Copy link
Copy Markdown
Member

@biz87 biz87 commented Mar 11, 2026

Summary

  • Кнопка «Сбросить» фильтра по статусу на странице заказов клиента редиректила на корень сайта (/?) вместо текущей страницы — из-за <base href> тега в шаблоне MODX
  • Та же проблема у ссылок пагинации — относительные ?offset=... резолвились от корня
  • Добавлен плейсхолдер page_url (абсолютный URL через makeUrl) в OrdersPageService, используется в чанке для form action, кнопки сброса и пагинации

Test plan

  • Открыть страницу заказов клиента
  • Выбрать статус в фильтре — URL должен быть /zakazyi-klienta.html?status=2
  • Нажать «Сбросить» — должен вернуться на /zakazyi-klienta.html (не на /)
  • Проверить пагинацию — ссылки должны вести на /zakazyi-klienta.html?offset=...

🤖 Generated with Claude Code

biz87 added 3 commits March 11, 2026 18:03
Relative URLs ('?', '?offset=...') resolved against <base href> tag
to site root instead of current page, breaking the reset button
and pagination links on customer order history page.
…iendly_urls

Build pagination URLs via makeUrl() with http_build_query() instead
of string concatenation in the template. This preserves the active
status filter across pages and produces valid URLs when friendly_urls
is disabled (avoids index.php?id=15?offset=20).
Add icon-arrow-left, icon-truck, icon-credit-card, icon-message
symbols to customer.tpl sprite sheet. Fix fill="currentColor" to
fill="none" stroke="currentColor" for Feather stroke-based icons.
@biz87 biz87 merged commit 4229182 into beta Mar 11, 2026
@Ibochkarev Ibochkarev deleted the fix/customer-orders-reset-url branch March 16, 2026 07:09
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

Successfully merging this pull request may close these issues.

1 participant