Currently struggling with the issue of how to build a URL which will redirect you to the new tab opening document in its native application.

For example wordviewer.aspx is taking care of word files. I know that with search results I am able to get the url in the format like /_layouts/wordviewer.aspx?querystring, but how to construct it from scratch?

1 Answer 1


You can just add the id parameter to your querystring and put the relative path there:


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.