Index: trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js |
— | — | @@ -13,7 +13,9 @@ |
14 | 14 | // object created therein. |
15 | 15 | mw.pageTriage.ArticleList = Backbone.Collection.extend( { |
16 | 16 | model: mw.pageTriage.Article, |
17 | | - url: '/w/api.php?action=pagetriagelist&format=json', |
| 17 | + url: mw.config.get('wgServer') + |
| 18 | + mw.config.get('wgScriptPath') + |
| 19 | + 'api.php?action=pagetriagelist&format=json', |
18 | 20 | |
19 | 21 | parse: function( response ) { |
20 | 22 | // extract the useful bits of json. |