Module:Submit an edit request: Difference between revisions

Content deleted Content added
various bug fixes
don't pass the query string through the uri object so that we can be sure that the parameters are in the right order
Line 87:
 
local query = {}
query[#query + 1] = 'action=edit'
query[#query + 1] = encode('preload', preloadTemplate)
query[#query + 1] = encode('editintro', editintro)
Line 95 ⟶ 94:
query[#query + 1] = encode('preloadparams[]', titleObj.prefixedText)
local url = mw.uri.fullUrl(talkpagename, table.concat(query,{action = '&edit')})
returnurl = tostring(url) .. '&' .. table.concat(query, '&')
return url
end