Index: trunk/extensions/Vector/modules/ext.vector.sectionEditLinks.js |
— | — | @@ -39,12 +39,9 @@ |
40 | 40 | 'clicktrackingevent': |
41 | 41 | 'ext.vector.sectionEditLinks-bucket:' + bucket + '@' + experiment + '-save' |
42 | 42 | } ); |
43 | | - $(this).attr( 'href', mediaWiki.config.get( 'wgScriptPath' ) + '/api.php?' + $.param( { |
44 | | - 'action': 'clicktracking', |
45 | | - 'eventid': 'ext.vector.sectionEditLinks-bucket:' + bucket + '@' + experiment + '-click', |
46 | | - 'token': session, |
47 | | - 'redirectto': editUrl |
48 | | - } ) ); |
| 43 | + $(this).attr( 'href', $.trackActionURL( editUrl, |
| 44 | + 'ext.vector.sectionEditLinks-bucket: ' + bucket + '@' + experiment + '-click' |
| 45 | + ) ); |
49 | 46 | } ); |
50 | 47 | if ( bucket == 2 ) { |
51 | 48 | // Move the link over to be next to the heading text and style it with an icon |