How to Open Links in New Window by default?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
jorgecarousel
Posts: 6
Joined: Fri Apr 22, 2022 3:05 pm

How to Open Links in New Window by default?

Post 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.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply