When I put attachments in a ticket, clients click the link and it opens in the same window. This means clients need to relog into the ticket system in order to view the attachment at the same time. Yes they can hit the back button and right click "open in a new window" but as we all know....most can't seem to figure that out.Is there a way to change the attachments so they open in a new tab/window  target="_blank"v1.9.3

There is no way to do this currently via the ui in 1.9.3.

17 days later

Ok, I found the solution. Doing the following will open the attachments in a new tab and prevent users from being taken away from the ticket system in order to view an attachment.Edit line 616 of include/class.thread.phpBEFORE:$str.=sprintf('<a class="Icon file no-pjax" href="%s?id=%d&h=%s" target="%s">%s</a>%s&nbsp;%s',                    $file, $attachment, $hash, $target, Format:($attachment), $size, $separator);AFTER EDIT:$str.=sprintf('<a class="Icon file no-pjax" href="%s?id=%d&h=%s" target="_blank" target="%s">%s</a>%s&nbsp;%s',                    $file, $attachment, $hash, $target, Format:($attachment), $size, $separator);

7 months later

Will this be implemented in a future release?

@[deleted]You could suggest implementation via a pull request over at github that the developers can then decide to implement / merge this ;)https://github.com/osTicket/osTicket-1.8

22 days later

i have added a better way to made that, see here:https://github.com/osTicket/osTicket-1.8/issues/2164#issuecomment-119995132

Write a Reply...