A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Opening_external_links_in_a_new_window below:

Manual:$wgExternalLinkTarget - MediaWiki

Set a default target for external links.
Introduced in version: 1.14.0 (r41333) Removed in version: Still in use Allowed values: (string) or false Default value: false

Set a default target for external links. If set to e.g. "_blank", this will also set the "noreferrer" and "noopener" link rel to prevent the attack described at https://mathiasbynens.github.io/rel-noopener/. Some older browsers may not support these link attributes, hence setting $wgExternalLinkTarget to _blank may represent a security risk to some of your users.

Add the following entry to LocalSettings.php file in order to open external links in a new window / tab.

$wgExternalLinkTarget = '_blank';

If the value is set to false, then no target attribute is used with external links (This behavior is the same as _self).

When changing the value, page cache must be refreshed in order to make the setting effective.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4