
Citation URLs aren’t guaranteed to use WOPI preview format; they depend on metadata returned by the knowledge source. Recent changes have caused inconsistencies.
There's a possible workaround.
AI Response Generated trigger: Intercept the final answer and rewrite citation URLs to the preview format:
https://<tenant>.sharepoint.com/_layouts/15/Doc.aspx?sourcedoc=<GUID>&file=<FileName>&action=default
Use Graph API or file properties to resolve the GUID.
Use PNP “Citations” topic sample: Lets you control link display and enforce viewer URLs.
Swap citations pattern: Available in CopilotStudioSamples; replaces default links during response generation.