Page 1 of 1

How to Open Links in New Window by default?

Posted: Fri Dec 23, 2022 5:18 pm
by jorgecarousel
Hello,

I noticed that when tickets with links are created the links open in the same window of the ticket by default, how can we change this so the links in tickets open in a new window by default instead?

Thanks.

Re: How to Open Links in New Window by default?

Posted: Sat Dec 24, 2022 9:49 am
by Klemen
I didn't test this, but most likey editing the /inc/common.inc.php would do the trick.

Find

Code: Select all

"$whitespace<a href=\"$url\"$class>$text</a>$append"
Change it to

Code: Select all

"$whitespace<a href=\"$url\"$class target=\"_blank\">$text</a>$append"
(this will only affect new tickets, not existing ones)