mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-09-23 10:19:05 +00:00
Track links shared by Share feature
Apply provenance parameter to all shared links via Share api. Bug: T207280 Change-Id: I175dcd45bd25f6ed21f06eeecfc22d97bd5a210a
This commit is contained in:
parent
9038122c6f
commit
8a844a9699
|
@ -9,10 +9,13 @@
|
|||
*/
|
||||
function clickShareHandler( navigator ) {
|
||||
return function () {
|
||||
var url = new URL( window.location.href );
|
||||
url.searchParams.append( 'wprov', 'mfsw1' );
|
||||
url.searchParams.delete( 'debug' );
|
||||
navigator.share( {
|
||||
title: config.get( 'wgTitle' ),
|
||||
text: config.get( 'wgTitle' ),
|
||||
url: window.location.href.split( '#' )[ 0 ]
|
||||
url: url.toString()
|
||||
} );
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue