Open mschleiss opened 5 days ago
hei @mschleiss. This behaiour can be changed in the LocalSettings.php wiki config file (in server)
https://stackoverflow.com/questions/9866819/mediawiki-open-external-links-in-a-new-window and https://www.mediawiki.org/wiki/Manual:$wgExternalLinkTarget explains how
If you want all external links to open in a new window: MediaWiki already has a setting for it: $wgExternalLinkTarget. Just add the following to your LocalSettings.php file:
$wgExternalLinkTarget = '_blank';
Do keep in mind that some internal links might not be identified as such, and therefore will open in a new window; one such example is an internal edit link created by using
[{{fullurl:Main Page|action=edit}}]
@mschleiss ,
An alternative to @andrecastro0o 's solution would be installing the LinkTarget extension: https://www.mediawiki.org/wiki/Extension:LinkTarget
This allows for a more granular approach by modifying specific links. The benefit of this is that it has less or no side effects.
By default, when clicking a link, the page opens in the same window. This can be a bit annoying and it would be better to open external links (such as landing pages, websites outside of the Wiki) in a new window.