View Issue Details

IDProjectCategoryView StatusLast Update
0027551mantisbtattachmentspublic2024-09-29 13:15
Reporteridvl Assigned Tocommunity  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version2.24.1 
Target Version2.27.0Fixed in Version2.27.0 
Summary0027551: Open attachment in a new tab/window
Description

When I click on a document attached to a Mantis ticket, the document (by default) opens in the same window.
So it is difficult to read the ticket description and visualize the document (for example a screenshot).

I know I can do ctrl+click but I would like to know if there is an option like LINKS_NEW_WINDOW for attachment or if it would be implemented.

Thanks!

Steps To Reproduce

1) Create a Mantis ticket with an attachment (png, jpg,..)
2) Submit the ticket
3) Go back on the ticket created and click on the attachment
=> the attachment opens in the same window so you need to close the attachment to read the description. It would be nice to be able to visualize both.

Additional Information

Discussed in https://mantisbt.org/forums/viewtopic.php?f=2&t=25561

TagsNo tags attached.

Activities

vboctor

vboctor

2021-08-07 19:20

manager   ~0065738

A community member has opened a PR for this:
https://github.com/mantisbt/mantisbt/pull/1767

dregad

dregad

2024-09-07 11:34

developer   ~0069164

New PR addressing review comments
https://github.com/mantisbt/mantisbt/pull/1994

Related Changesets

MantisBT: master d1cc5911

2024-09-07 11:53

dregad


Details Diff
Open attachments in new tab

Adds new config '$g_attachments_to_new_tab', controlling attachment
links' target attribute.

Fixes 0027551
Affected Issues
0027551
mod - config_defaults_inc.php Diff File
mod - core/print_api.php Diff File
mod - docbook/Admin_Guide/en-US/config/uploads.xml Diff File