question

Gaurav-0683 avatar image
0 Votes"
Gaurav-0683 asked RajeshKumarMSFT-6137 edited

URL having encoded sign "%20" is not working in TeamsAdapter chat

the URL provided :

https://xyz/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2FMyProcureLearnhcloingCenter%2FShared%20Documents%2FP2P%2FNo%20PO%20No%20Work%20Polic%2FNo%20PO%20No%20Work%20Policy%20User%20Manual%2Epdf&parent=%2Fsites%2FMyProcureLearningCenter%2FShared%20Documents%2FP2P%2FNo%20PO%20No%20Work%20Polic

is having encoded signs like %20, %2F and %2E and it is a working URL.
but its showing spaces at the place of “%20“ in TeamsAdapter chat, so the URL is breaking like that and not coming as a full link.

200697-1.png



Analysis :

“%20“ is nothing but an encoded space ““. So instead of using “%20“ as a space I have also used “-“ and “+“, by using this, the URL is not breaking but it’s also not working.

office-teams-windows-itprooffice-teams-app-dev
1.png (16.9 KiB)
· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Gaurav-0683

Welcome to Q&A forum!

I did a test in our environment and we found the %20 could be used in link when copy it. Here is our screenshot for your reference:

200770-image.png

To confirm if it is a client problem, could you try to login Teams web client to see if it can be reproduced?

0 Votes 0 ·
image.png (21.3 KiB)

Hi @JimmyYang-MSFT

We are getting response from Client Bot and in Client Bot, URL with "%20" is already present but it is coming as a space" " in the TeamsAdapter.
In client bot response, URL is present in <a> tag.

0 Votes 0 ·

@Gaurav-0683

If you copy the URL message from Bot and paste it in Teams chat bar, will the URL be presented normally?

0 Votes 0 ·
Show more comments

0 Answers