jesus2099 reports that links to uploaded files (e.g., images, PDFs) on Discourse — such as those under /uploads/ — do not respect the user setting “Open all external links in a new tab,” even though they break Discourse navigation by replacing the current tab. This causes users to lose context and forces a full page reload when using the Back button. nat agrees and moves the issue to #feature for future consideration. jesus2099 clarifies the bug applies to all uploads, not just PDFs, and demonstrates with a PNG link that opens in-place, disrupting the browsing experience. Ethsim2 initially questions whether navigation loss is real, but later agrees that uploads — whether on CDN or local server — should open in new tabs, and supports the feature request. They also note that PDFs currently download instead of opening inline or in new tabs, suggesting an option should exist. jesus2099 reiterates the core issue: any link that leaves Discourse context should open in a new tab, regardless of upload type or performance factors. The discussion concludes with Ethsim2 expressing hope the feature gains traction to improve user experience, especially compared to mobile apps like Moodle’s.
These links break the Discourse browsing as they are links to attached/uploaded files, kind of technical folders (/uploads/…, etc.), not to regular Discourse pages (/t/…, /u/…, etc.)
They are not really external links but they are not normal Discourse browsing pages, either.
So maybe not a Contribute > Bug…
I don’t use PWA, I don’t know what it is, exactly.
My bug report is for the regular use of (meta) Discourse website.
The “Open all external links in a new tab” option is there to make sure that all pages that are outside of (meta) Discourse navigation (menus), will open in a new tab.
Leaving the original tab with the (meta) Discourse page you were at.
Here, after I click this image link, when I hit the “Back” button, I will have to wait that Discourse website reloads entirely (and cross fingers so that it ends up on the same previous post, not the case here):
I see, i opened another image on meta that was on CloudFront. I realise any upload whether on CDN/S3
or the server itself,
i also realise the bug from my own instance’s local uploads.
should be loaded in another tab.
I have voted on your feature request for the below various reasons.
and also because i don’t understand why PDFs download rather than open in another tab, i think we should have the option for that rather than thoka provide the necessary plugin.
I understand moodle have a way of displaying download page in a new tab, like the “Page is private or deos not exist” page on Discourse
I do hope this feature request gains much traction, because would be an especially large endeavour to upgrade Discourse, so the PWA is better than the Moodle App in all possible ways.