Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

viewport url redirect macro - how to open attachment in new tab instead of auto download?

Deepak Chandrashekar Naik
Contributor
August 8, 2023

Hello Team,

As of now, i am using "viewport url redirect macro" in confluence for attachmnets, due to this when user click on this page in confluence viewport, attached file will directly downloaded in the user's system an for some users it does not.

How to avoid this download option and enable the attached file to open in next or new tab?

1 answer

1 accepted

1 vote
Answer accepted
Leo Collmann (K15t)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2023

Hi Deepak,

the way a file URL is being handled can depend on different factors, like browser settings, file type, file size and Content-Disposition. Extensions like PDF readers might also change the standard behaviour. Since all browsers handle content differently, depending on the user setup, a file might open in a new tab or as a download. The macro itself doesn't include any suggestion for the browser how to deal with file URLs (whether to download or display them).

Hope that clears it up a bit!



Deepak Chandrashekar Naik
Contributor
August 9, 2023

@Leo Collmann (K15t) yes, thank you for the answer, that is really great information.

Like Leo Collmann (K15t) likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events