Manuale:$wgExternalLinkTarget

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgExternalLinkTarget and the translation is 30% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎Tiếng Việt
Parser: $wgExternalLinkTarget
Set a default target for external links.
Introdotto nella versione: 1.14.0 (r41333)
Rimosso nella versione: still in use
Valori concessi: string or false
Valore predefinito: false

Impostazioni: Alfabetiche | Per funzione

Dettagli[edit]

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.phpManual: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.

Vedi anche[edit]