# XML responses with &amp; in URLs "broken"

**URL:** <https://community.postman.com/t/xml-responses-with-amp-in-urls-broken/73893>\
**Category:** Help Hub\
**Tags:** xml-response, xml-parsing\
**Created:** [January 16, 2025, 10:00am UTC](https://community.postman.com/t/xml-responses-with-amp-in-urls-broken/73893 "2025-01-16T10:00:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swobi71](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@swobi71](https://community.postman.com/u/swobi71)\
**Post date:** [January 16, 2025, 10:00am UTC](https://community.postman.com/t/xml-responses-with-amp-in-urls-broken/73893/1 "2025-01-16T10:00:14Z")

</div>

While testing a new API I had the problem that the XML response contains a URL which itself contains a URL:

```auto
<httpActionLink> 
    <url>https://server.com?token=123456&amp;redirectUrl=%2Fpath%2Fpage.jsf</url> 
</httpActionLink>

```

the &amp; is the encoding needed in XML, but Postman does not change it back to &

So when I “Follow the link” (ctrl + click), the browser opens the first URL, but then the redirection to redirectUrl is not working!

When I change it manually to …&redirectUrl… it works.

Any suggestions? Should Postman “decode” the &amp; in XML?

---

<div class="post-metadata">

**Author:** ![swobi71](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@swobi71](https://community.postman.com/u/swobi71)\
**Post date:** [January 16, 2025, 1:37pm UTC](https://community.postman.com/t/xml-responses-with-amp-in-urls-broken/73893/2 "2025-01-16T13:37:36Z")

</div>

oh, there is an open github issue from 2022:

> <https://github.com/postmanlabs/postman-app-support/issues/11536>
>
> \### Is there an existing issue for this?
> 
> \- \[X\] I have searched the tracker for …existing similar issues and I know that duplicates will be closed
> 
> \### Describe the Issue
> 
> When I use the api to generate a URL that contains an "&" character, this is output as "&amp;" when the response-body is displayed in the "pretty-view" or "raw-view". If I log the URL with Test-Script or look at the response-body in the "preview-view", the URL is output correctly.
> 
> The addition "amp;" makes the URL invalid.
> 
> 
> \### Steps To Reproduce
> 
> 1. Create a Request based on XML with URL output including "&"-character 
> 2. Look at the Value in the response-body (pretty/raw-view)
> 3. The URL is invalid, because instead of "&" "&amp;" is displayed in the response.
> 
> 
> !\[2022-12-09-12-33-21\](https://user-images.githubusercontent.com/120180061/206696715-9e262720-b4a2-4885-900b-5e0045a2b4f4.png)
> 
> !\[2022-12-09-12-33-38\](https://user-images.githubusercontent.com/120180061/206696759-ca8e3153-01bf-4745-bc14-5143b34b6ba8.png)
> 
> 
> !\[2022-12-09-12-33-26\](https://user-images.githubusercontent.com/120180061/206696773-cdd95577-bd5e-46c3-a5bb-8c9f34a455bf.png)
> 
> 
> \### Screenshots or Videos
> 
> \_No response\_
> 
> \### Operating System
> 
> Windows
> 
> \### Postman Version
> 
> 10.5.6
> 
> \### Postman Platform
> 
> Both
> 
> \### User Account Type
> 
> Signed In User
> 
> \### Additional Context?
> 
> If you need some Testaccount to reproduce it please let me now.

the textual description of the issue suffers also from the &amp; Problem (but the additional screenshots explain it in detail):

> When I use the api to generate a URL that contains an “&” character, this is output as “&” when the response-body is displayed in the “pretty-view” or “raw-view”.

The second “&” should be “&amp;”

Maybe that’s why the issue is still open?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 16, 2025, 1:38pm UTC](https://community.postman.com/t/xml-responses-with-amp-in-urls-broken/73893/3 "2025-04-16T13:38:09Z")

</div>

Closed on April 16, 2025, 1:38pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
