Closes #63 open links in tickets in new tab / window
Typically, users should be given the ability to open links in the same window. However, according to HTML5 specifications, the _blank target attribute is now permitted for specific use cases. Opening external links, in my opinion, is a valid use case.
This commit is contained in:
parent
83b4b16d48
commit
8915114b42
@ -1310,7 +1310,7 @@ function make_clickable_callback($type, $whitespace, $url, $relative_url, $class
|
|||||||
$text = htmlspecialchars($text);
|
$text = htmlspecialchars($text);
|
||||||
$append = htmlspecialchars($append);
|
$append = htmlspecialchars($append);
|
||||||
|
|
||||||
$html = "$whitespace<a href=\"$url\"$class>$text</a>$append";
|
$html = "$whitespace<a href=\"$url\" target=\"blank\" $class>$text</a>$append";
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
} // END make_clickable_callback()
|
} // END make_clickable_callback()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user