mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-15 03:34:25 +00:00
Merge "Follow-up to 74b5834
: Add language prefix to Readability survey"
This commit is contained in:
commit
319fd57e0f
|
@ -85,10 +85,13 @@ module.exports = exports = {
|
|||
},
|
||||
computed: {
|
||||
feedbackUrl: function () {
|
||||
const contentLang = mw.config.get( 'wgContentLanguage' );
|
||||
const preloadLangSuffix = (contentLang === 'en' ) ? '' : '/' + contentLang;
|
||||
|
||||
const feedbackUrlParams = new URLSearchParams( [
|
||||
[ 'action', 'submit' ],
|
||||
[ 'section', 'new' ],
|
||||
[ 'preload', 'Special:MyLanguage/Reading/Web/Accessibility_for_reading/Community_Prototype_Testing/preload' ],
|
||||
[ 'preload', 'Reading/Web/Accessibility_for_reading/Community_prototype_testing/preload' + preloadLangSuffix ],
|
||||
[ 'preloadparams[]', this.fontSize ],
|
||||
[ 'preloadparams[]', this.lineHeight ],
|
||||
[ 'preloadparams[]', this.verticalMargins ],
|
||||
|
@ -96,7 +99,7 @@ module.exports = exports = {
|
|||
[ 'preloadparams[]', `${window.innerWidth} x ${window.innerHeight}` ],
|
||||
[ 'preloadtitle', ( mw.user.getName() ) ? 'User: ' + mw.user.getName() : '' ]
|
||||
] );
|
||||
return "https://www.mediawiki.org/wiki/Reading/Web/Accessibility_for_reading/Community_Prototype_Testing/Feedback?" + feedbackUrlParams.toString();
|
||||
return "https://www.mediawiki.org/wiki/Reading/Web/Accessibility_for_reading/Community_prototype_testing/Feedback?" + feedbackUrlParams.toString();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue