Open Mamatha-MSFT opened 3 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
From the tests I have made, it is not possible to not encode the [pageUrl] part of the URL, in the case you have any spaces or special characters in the URL, the response will give an HTTP Error 400. The request is badly formed
.
I think the teamslogon.aspx page needs a fix to not encode the redirected URL twice and result in a 404.
I don't see a workaround for these cases right now.
As of today, it seems like the encoding bug on teamslogon.aspx is resolved
There is still a defect - I have a situation with such url: _https://contoso.sharepoint.com/sites/one/_layouts/15/teamslogon.aspx?SPFX=true&dest=%2fsites%2fone%2fredirect.aspx%3furl%3dhttps%253a%252f%252fmysite.azureedge.net%252findex.html%253fparam1%253dtrue%2526param2%253dfalse_
I expect this to go to: https://contoso.sharepoint.com/sites/one/redirect.aspx?url=https%3a%2f%2fmysite.azureedge.net%2findex.html%3fparam1%3dtrue%26param2%3dfalse
But instead it is decoding everything and I'm loosing my parameters in the second url: https://contoso.sharepoint.com/sites/one/redirect.aspx?url=https://mysite.azureedge.net/index.html?param1=true¶m2=false
Can you please investigate it?
UPDATE - I found a workaround by creating a custom SPFx web part which is loaded through teamslogon.aspx and handled my redirect correctly.
This still seems to be an issue.
The Lists Teams app from Microsoft will also just throw a 404 if it's added to a Team where the a site collection for the team has a whitepace in the url i.e. [https://contoso.sharepoint.com/sites/Internal Projects]()
Double encoding the provided URL, redirecting to an invalid URL and resulting in a 404. Example:![image](https://user-images.githubusercontent.com/78795357/109536208-78ee9a80-7ae3-11eb-95e1-5a15298e3689.png)
https://contoso.sharepoint.com/sites/ContosoNet/_layouts/15/teamslogon.aspx?SPFX=true&dest=/sites/ContosoNet/Home%20page.aspx
Will redirect to:https://contoso.sharepoint.com/sites/ContosoNet/Home%2520page.aspx
See the double encoding with the "Home%2520page" above. The URL without encoding is working fine. So, could you please remove highlighted text in below image.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.