SharePoint Document link broken by URL encoding of "?" character

%3CLINGO-SUB%20id%3D%22lingo-sub-1284573%22%20slang%3D%22en-US%22%3ESharePoint%20Document%20link%20broken%20by%20URL%20encoding%20of%20%22%3F%22%20character%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1284573%22%20slang%3D%22en-US%22%3E%3CP%3EI%20ran%20into%20a%20a%20niche%20case%20today%20where%20the%20URL%20encoding%20of%20the%20%22%3F%22%20character%20to%20%22%253F%22%20in%20a%20SharePoint%20document%20link%20returns%20the%20error%20%22Sorry%2C%20something%20went%20wrong.%26nbsp%3BAn%20unexpected%20error%20has%20occurred.%22%20Seems%20like%20something%20that%20SharePoint%20should%20be%20able%20to%20handle...%3C%2FP%3E%3CP%3EThis%20occurred%20when%20a%20user%20exported%20a%20PowerPoint%20to%20PDF%20on%20a%20Mac.%20Underlying%20error%20though%20is%20that%20the%20URL%20Encoded%20link%20doesn't%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3EWorking%20link%3A%20https%3A%2F%2F%7Btenant%7D.sharepoint.com%2F%3Ax%3A%2Fs%2F%7Bsite%7D%2F%7BSharingCode%7D%3Fe%3DSmsfl2%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3EFailing%20link%3A%26nbsp%3Bhttps%3A%2F%2F%7Btenant%7D.sharepoint.com%2F%3Ax%3A%2Fs%2F%7Bsite%7D%2F%7BSharingCode%7D%253Fe%3DSmsfl2%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20behaviour%20also%20fails%20for%20other%20links%20generated%20by%20Sharing%20documents%3C%2FP%3E%3CP%3ECan%20anyone%20else%20confirm%20that%20they%20see%20this%20behaviour%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1284573%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Elink%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1384014%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Document%20link%20broken%20by%20URL%20encoding%20of%20%22%3F%22%20character%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1384014%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F580347%22%20target%3D%22_blank%22%3E%40BrettVert%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20having%20the%20same%20problem.%20When%20I%20export%20a%20PowerPoint%20as%20a%20PDF%20on%20a%20Mac%20with%20Microsoft%20Stream%20links%2C%20the%20%3F%20in%20the%20links%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fweb.microsoftstream.com%2Fvideo%2F5a07a7%5Bshortened%5D03f65226fd%3Fst%3D115%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fweb.microsoftstream.com%2Fvideo%2F5a07a7%5Bshortened%5D03f65226fd%3Fst%3D115%3C%2FA%3E%3C%2FP%3E%3CP%3EBecome%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fweb.microsoftstream.com%2Fvideo%2F5a07a7%5Bshortened%5D03f65226fd%3Fst%3D115%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fweb.microsoftstream.com%2Fvideo%2F5a07a7%5Bshortened%5D03f65226fd%253fst%3D115%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhich%20breaks%20the%20links%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Senior Member

I ran into a a niche case today where the URL encoding of the "?" character to "%3F" in a SharePoint document link returns the error "Sorry, something went wrong. An unexpected error has occurred." Seems like something that SharePoint should be able to handle...

This occurred when a user exported a PowerPoint to PDF on a Mac. Underlying error though is that the URL Encoded link doesn't work.

 

Working link: https://{tenant}.sharepoint.com/:x:/s/{site}/{SharingCode}?e=Smsfl2 

Failing link: https://{tenant}.sharepoint.com/:x:/s/{site}/{SharingCode}%3Fe=Smsfl2 

 

This behaviour also fails for other links generated by Sharing documents

Can anyone else confirm that they see this behaviour?

 

 

1 Reply
Highlighted

@BrettVert 

 

I am having the same problem. When I export a PowerPoint as a PDF on a Mac with Microsoft Stream links, the ? in the links 

 

https://web.microsoftstream.com/video/5a07a7[shortened]03f65226fd?st=115

Become

https://web.microsoftstream.com/video/5a07a7[shortened]03f65226fd%3fst=115

 

Which breaks the links