Pasting Jira filter URL into Confluence shows Asian characters Jira link instead of issue list
Asked by Sina Sadeghi Pour:

Every month I produce a Confluence page using a Jira issue filter URL like:

```
https://<myorg>.atlassian.net/issues/?jql=project+%3D+<myproject>+AND+labels+%3D+MonthlyGoal%3AAug23+ORDER+BY+status+DESC%2C+created+DESC&atlOrigin=<redacted>
```

Usually, as expected, the result is a list of Jira issues presented in a nice table:

![Screenshot 2023-08-02 at 10.41.42 am.png](/t5/image/serverpage/image-id/272604i46AA655A024D73A8/image-size/large?v=v2&px=999 "Screenshot 2023-08-02 at 10.41.42 am.png")

This month, I am getting a Jira link with Asian characters:

![Screenshot 2023-08-02 at 10.29.18 am.png](/t5/image/serverpage/image-id/272603iDC27688B96D22AFB/image-size/large?v=v2&px=999 "Screenshot 2023-08-02 at 10.29.18 am.png")

I assume this is a bug.


Answers:
author: Avery Lane
body: Hello [@Sina Sadeghi Pour](/t5/user/viewprofilepage/user-id/5282474) I came across this as well and have filed a bug report that you can follow and vote on here:

<https://jira.atlassian.com/browse/JRACLOUD-81604>

### Issue Summary {#toc-hId-2058634777}

In some instances, when copying and pasting a Jira Filter link into a comment in any Atlassian product or on a page in Confluence, the Link preview will render random Chinese characters instead of the links contents.

This only happens with what I will refer to as **"precursor"** filter links in this format:

```
https://your-domain.atlassian.net/issues/?filter=12345
```

If you paste this URL into a comment on an issue comment or in Confluence, the link preview will render Chinese characters.

If you visit the link above in a web browser it will actually **redirect** to a URL in this format:

```
https://your-domain.atlassian.net/browse/PRJ-123?filter=12345
```

Where **PRJ-123** is the issue key of the first issue returned by the filter. Filter links in this format will render normally in Jira issue comments and in Confluence.

This is reproducible on Data Center: No

### Steps to Reproduce {#toc-hId-251180314}

So far I have found that there are two ways that users might end up copying the precursor link (before the redirect):

1. Jira Menu ? Filters ? View All Filters
   * If you directly copy the filter links from this page and paste them into a comment or confluence page, Chinese characters will be rendered in the link preview.
2. Jira Menu ? Filters ? Under RECENT select any recent filter ? Click Filters again ? Under RECENT select the same filter again
   * This will cause the link in the address bar to change to the precursor link without redirecting. If you copy and past this link into a comment or Confluence page, Chinese characters will be rendered in the link preview.

### Workaround {#toc-hId--1556274149}

**Workaround 1:** (Recommended) Visit the link and copy the redirected link instead

**Workaround 2:** Extract the **filterID** from the URL and form your own URL using the following format:

```
https://your-domain.atlassian.net/browse/PRJ-123?filter=12345
```

Where **PRJ-123** is the issue key of the first issue returned by the filter. Filter links in this format will render normally in Jira issue comments and in Confluence. (This alternative workaround may be useful if you are using the API or a scripting solution and can't or don't want to make additional network requests to get the redirected link).

During my testing, I discovered that any random project and issue key works even if the project or issue key doesn't actually exist as long as this format is used:

```
/browse/P-n?filter=12345
```

Where **P** is any number of **upper-case** letters and **n** is any positive integer.

comments: author: Sina Sadeghi Pour
body: Thanks [@Avery Lane](/t5/user/viewprofilepage/user-id/5135943) ! Appreciate the workarounds.


author: Sina Sadeghi Pour
body: Hi [@Avery Lane](/t5/user/viewprofilepage/user-id/5135943)

I just tested your workaround, if I go to the link, wait for redirection and copy the resulting URL from my browser URL bar, paste it into Confluence, it gives me a Jira link, it doesn't expand it to a table of Jira issues as I would expect.

FWIW the URL also doesn't have \`/...?filter=...\` but rather \`/...?jql=...\`


Tags: cloud

confluence-cloud