Azure / Azure/api-management-developer-portal

`&` sign in response from Try it translates to `\u0026`

Open
#2,478 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
545
Forks
360
PR merge metrics
No merged PRs in 30d

Description

## Bug description

In one of our APIs we return a URL in the response. The URL consist of & signs. If we test the API with the "Try it" functionality in the developer portal the URL in the response the `&` sign is translated to `\u0026`. If we do the same request from curl, Postman, Bruno, etc. the URL is formatted correctly with the `&` sign.

## Expected behavior

Developer portal should not translate things in the response, and just show the response as it actually is.

## Is your portal managed or self-hosted?

Managed

## Additional context

From the response in the developer portal:
![Screenshot 2024-05-02 at 10 40 07](https://github.com/Azure/api-management-developer-portal/assets/29739663/e58a619e-6a66-4b01-b575-f0f782677c69)

From the response in Bruno:
![Screenshot 2024-05-02 at 10 42 50](https://github.com/Azure/api-management-developer-portal/assets/29739663/dfa00bd0-be78-4c9a-b299-0dee116fa389)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the API call through the developer portal's "Try it" functionality and compare its displayed response with the same request in curl, Postman, or Bruno. Trace the response-rendering entry point used by "Try it"; done means URLs containing ampersands are displayed exactly as returned, without the added backslash.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.