SOLVED

Auto download link

%3CLINGO-SUB%20id%3D%22lingo-sub-1087915%22%20slang%3D%22en-US%22%3EAuto%20download%20link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1087915%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20adding%20an%20excel%20document%20into%20a%20document%20library%20and%20want%20to%20create%20a%20link%20on%20a%20page%20that%20automatically%20downloads%20the%20file%20rather%20than%20it%20automatically%20opening%20in%20Excel%20online.%20After%20some%20research%20I%20saw%20that%20you%20could%20change%20the%20URL%20of%20the%20share%20link%20to%20it%20had%20'download.aspx'%20but%20the%20original%20didn't%20have%20the%20'guestaccess.aspx'%20that%20is%20mentioned.%20Anyone%20got%20any%20suggestions%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1087915%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWebPart%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1087919%22%20slang%3D%22en-US%22%3ERe%3A%20Auto%20download%20link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1087919%22%20slang%3D%22en-US%22%3E%3CP%3ENevermind%2C%20I%20found%20out%20if%20I%20had%20in%20%3Fdownload%3D1%20in%20the%20URL%20it%20will%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I'm adding an excel document into a document library and want to create a link on a page that automatically downloads the file rather than it automatically opening in Excel online. After some research I saw that you could change the URL of the share link to it had 'download.aspx' but the original didn't have the 'guestaccess.aspx' that is mentioned. Anyone got any suggestions?

2 Replies
Highlighted
Best Response confirmed by timparsons (Contributor)
Solution

Nevermind, I found out if I had in ?download=1 in the URL it will work.

Highlighted
Yup. You probably found another post I replied in with that trick ;)