chatwoot/app/views
msaleh-313 9c22d791c4
fix: return correct outgoing_url in Platform agent bot API responses (#13827)
The Platform API was returning the bot's `name` value for the
`outgoing_url` field across all agent bot endpoints (index, show,
create, update). A typo in the `_agent_bot.json.jbuilder` partial used
`resource.name` instead of `resource.outgoing_url`.

Closes #13787

## What changed

- `app/views/platform/api/v1/models/_agent_bot.json.jbuilder`: corrected
`resource.name` → `resource.outgoing_url` on the `outgoing_url` field.

## How to reproduce

1. Create an agent bot via `POST /platform/api/v1/agent_bots` with a
distinct `outgoing_url`.
2. Call `GET /platform/api/v1/agent_bots/:id`.
3. Before this fix the `outgoing_url` in the response equals the bot's
`name`; after the fix it equals the value set at creation.

## Tests

Added `outgoing_url` assertions to the existing GET index and GET show
request specs so the regression is covered.
2026-03-17 13:40:45 -07:00
..
android_app chore: Universal Linking for Android (#2324) 2021-06-02 08:46:45 -07:00
api feat: Add draft status for help center locales (#13768) 2026-03-17 12:45:54 +04:00
apple_app chore: Configure iOS universal linking (#10651) 2025-01-08 21:25:11 +05:30
dashboard Initial Commit 2019-08-14 15:18:44 +05:30
devise fix: Fixes wrong copy being sent to users via email invite [cw-1290] (#7159) 2023-05-23 09:37:40 +05:30
fields refactor: extract custom attribute methods from FilterService (#13743) 2026-03-10 14:15:52 +05:30
icons fix: Broken header in public Help Center portal (#11704) 2025-06-11 15:07:24 -04:00
installation/onboarding fix: onboarding/index.html.erb unclosed HTML tags (#10838) 2025-02-06 09:43:38 +05:30
layouts fix: Use page_title with fallback to name for portal display titles (#13719) 2026-03-05 14:20:31 +05:30
mailers feat: Standardize rich editor across all channels (#12600) 2025-12-08 14:43:45 +05:30
microsoft fix: Identity JSON response header (#6326) 2023-02-02 11:01:18 +05:30
platform/api/v1 fix: return correct outgoing_url in Platform agent bot API responses (#13827) 2026-03-17 13:40:45 -07:00
public/api/v1 feat: Add draft status for help center locales (#13768) 2026-03-17 12:45:54 +04:00
super_admin feat: show MFA status on Super Admin user page (#13724) 2026-03-09 08:04:36 -07:00
survey/responses feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
widget_tests chore: Remove defer attribute from widget-loader script (#11887) 2025-07-08 15:31:33 +05:30
widgets feat: Add rich text support for widget welcome tagline (#11666) 2025-06-05 14:13:46 -05:00