מדיה ויקי:Gadget-HotCat.js: הבדלים בין גרסאות בדף
Avoid adding categories multiple times on the upload form |
Filter out hard redirects |
||
| שורה 631: | שורה 631: | ||
if ( v != "" ) { | if ( v != "" ) { | ||
var url = wgServer + wgScriptPath | var url = wgServer + wgScriptPath | ||
+ "/api.php?format=xml&action=query&list=allpages&apnamespace=14&apfrom=" | + "/api.php?format=xml&action=query&list=allpages&apnamespace=14&apfilterredir=nonredirects&apfrom=" | ||
+ encodeURIComponent( v ) ; | + encodeURIComponent( v ) ; | ||
var request = sajax_init_object() ; | var request = sajax_init_object() ; | ||