Jump to: navigation, search
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 your "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 behaviour is the same as _self).

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

See also[edit | edit source]

Language: English  • 日本語 • polski • русский • Tiếng Việt