Topic on Project:Support desk

Warning someone that you're leaving the wiki

6
Whatamidoing (WMF) (talkcontribs)

Is there any existing extension or tool that warns readers that they're leaving the wiki? It's common for some types of websites and usually displays a message like "You are now leaving OurSite.com for an external site. OurSite is not responsible for the content of other websites". Does that exist in MediaWiki?

Bawolff (talkcontribs)

Personally i find those types of things annoying.

We do have it for certain special cases - e.g. special:search/google:foo, where open redirects can happen (open redirect is a type of security vuln where you trick a person into thinking they are on a different website than they actually are. Its sometimes used in phishing attacks)


So outside of open redirects, no i'm not aware of anything.

Osnard (talkcontribs)

You may be able to just intercept any external link click and show some alert dialog using JavaScript in MediaWiki:Common.js

$(document).on( 'click', 'a.external', function() { alert( 'You are leaving ' + mw.config.get('wgSiteName') ); } );

But that of course will only work for clients with JavaScript enabled.

Whatamidoing (WMF) (talkcontribs)

Osnard, that might be good enough. I imagine that a system that worked for most of the cases, most of the time would be handy for some purposes, especially a wiki that was on a sensitive topic.

76.166.193.10 (talkcontribs)

I would imagine that most intranet instances of mediawiki would find benefit in this capability. I work for a large company that is looking for this capability on their corporate instance.

Whatamidoing (WMF) (talkcontribs)

I wonder whether folks associated with the Enterprise hub would have other ideas about how to address this problem.

Reply to "Warning someone that you're leaving the wiki"