MediaWiki URL parameters without values

前端 未结 3 1670
南方客
南方客 2021-01-12 10:04

The query part of a URL seems to consist of key-value pairs separated by & and associated by =.

I\'ve taken t

3条回答
  •  有刺的猬
    2021-01-12 10:26

    Most likely what they are doing is just checking that the parameter is defined. By adding redirects to the query string, that effectively is saying "redirects variable is true". So, adding redirects=0 is still defining that variable, and the MediaWiki API is noting that it is defined (not caring what the value is).

    Your jQuery code will simply need to append that parameter (with any value, or no value) or omit it if you do not want it to be defined.

提交回复
热议问题