Forum Discussion
Prevent Edge from opening Office files
Ran into a similar problem today while helping Dad with his website, where he wanted to make an .xls document downloadable without opening in Edge.
I realize my use case is a little different than OP's, but since this is one of the first threads that showed up in Google, I wanted to provide a general workaround:
Since there's an exception for POST request method:
https://textslashplain.com/2020/02/26/can-i-in-the-new-edge/#:~:text=How%20does%20Edge%20render%20Office%20documents%20directly%20in%20the%20browser%3F
Simply use this workaround to have a "link" that uses POST instead of GET:
https://stackoverflow.com/a/33880971/16118981
Again, somewhat different use case from OP, but just in case anyone else ran into my issue, this seems to work well. WordPress users can simply use the HTML block to implement this. Peace and God bless! ✌️