Template:2011FR/Form-section-links: Difference between revisions

Content deleted Content added
escape ampersands
that doesn't work properly (ampersand bugs). Don't pass anything from static pages for now, will look at this again later.
Line 80:
if (pageCountrySpecific == "") {
// if on a static page, e.g. from sidebar just use a monthly form and leave everything else as defaults
// Need to fix this later to pass language, utm data etc, but that stupid ampersand bug is stopping me for now -- Pcoombe
monthlyURL = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?form-countryspecific=Form-countryspecific-monthly&uselang=' + wgUserLanguage;
monthlyURL += '&utm_medium=' + getQuerystring('utm_medium') + '&utm_campaign=' + getQuerystring('utm_campaign') + '&utm_source=' + getQuerystring('utm_source');
} else {
// if on Special:FundraiserLandingPage, use all the same querystring but a monthly form