I am currently working on a project where I need to customize the behavior of the "viewer.aspx" page in SharePoint Online. Specifically, I want to intercept the call to the "viewer.aspx" page and redirect the user to a different page.

Here's the scenario: When I use "Bing search for work" and search for a document, the search results point to the document using the "viewer.aspx" handler in the following format:


My requirement is to intercept this call landing on the "viewer.aspx" page and redirect the user to a different page. I am looking for a way to achieve this either programmatically or through configuration.

I have done extensive research on this topic, but I haven't found a solution that specifically addresses this requirement. Most resources discuss general redirection in SharePoint Online, but none seem to cover the customization of the "viewer.aspx" page.

Can anyone provide guidance on how to achieve this? Any help or direction would be greatly appreciated.

Thank you in advance.

Best regards,

1 Answer 1


I don't believe the viewer.aspx page can be modified in anyway, as this is SharePoint Online. Most customisations must be done via SPFx, but I've never seen SPFx being used to customise this page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.