Manual:$wgExternalLinkTarget
From MediaWiki.org
(Redirected from Manual:Opening external links in a new window)
Parser: $wgExternalLinkTarget | |
---|---|
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 |
Other settings: Alphabetical | By Function
Details[edit | edit source]
Set a default target for external links. Add the following entry to LocalSettings.php file in order to open 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 views must be refreshed in order to make the setting effective.