# Howto open PDF files in same browser window?

**URL:** <https://meta.discourse.org/t/howto-open-pdf-files-in-same-browser-window/25823>\
**Category:** Feature\
**Created:** [28.Февраль.2015 03:00:39 UTC](https://meta.discourse.org/t/howto-open-pdf-files-in-same-browser-window/25823 "2015-02-28T03:00:39Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/579307_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)\
**Post date:** [28.Февраль.2015 03:00:39 UTC](https://meta.discourse.org/t/howto-open-pdf-files-in-same-browser-window/25823/1 "2015-02-28T03:00:39Z")

</div>

Continuing the discussion from [Treat all links as target\_blank?](https://meta.discourse.org/t/treat-all-links-as-target-blank/10988)

Hi,  
I’m using some categories for discussing / viewing pdfs (scientific reviews). I’d like to prevent Discourse / my Safari desktop browser from putting each file into my download folder. The pdf should be viewable in the current tab/window. How can I set this?

In case of visiting Discourse via iPad or any other kind of mobile device, it’s just working fine by design. But those screen resolutions are sometimes too low. Any ideas? CSS snippets?

###I found this, but I don’t know how to set this globaly:

> <https://stackoverflow.com/questions/6293893/how-do-i-force-files-to-open-in-the-browser-instead-of-downloading-pdf>

Big thanks so far and  
wish you all a pleasant weekend ☀

---

_[View the full topic](https://meta.discourse.org/t/howto-open-pdf-files-in-same-browser-window/25823)._
