On Tue, Oct 19, 2010 at 11:41 PM, Platonides <[email protected]> wrote:
> Rob Lanphier wrote:
>> Hi all,
>>
>> In diving into a problem with logging[1], we discovered that we were
>> unintentionally treating several special page accesses (in this case,
>> containing included Javascript) as normal pageviews, thus throwing our
>> pageview statistics way off.  The proposed solution involves changing
>> the way we access those Javascript requests from this form:
>> http://en.wikipedia.org/wiki/Special:BannerController
>>
>> ...to this form:
>> http://en.wikipedia.org/w/index.php?title=Special:BannerController
>>
>> I'm assuming this convention isn't documented anywhere (other than
>> earlier today on the wikitech wiki[2]).  Before we run off and
>> document this as something code reviewers need to look out for, I'd
>> like to make sure this is really how we'd like to make the
>> distinction.
>
> I think the anomally is to have a Special page that is javascript.
>
> A special page should look like a wiki page.
>
> In your case, I would append ctype=text/javascript to the query string,
> so it
> a) Looks more like something that will give out javascript.
> b) Forces it to use the long style.
Nope, appending parameters works also in the short form:
http://en.wikipedia.org/wiki/Special:BannerController?ctype=text/javascript

Works also for ?action=edit etc.

Marco

-- 
VMSoft GbR
Nabburger Str. 15
81737 München
Geschäftsführer: Marco Schuster, Volker Hemmert
http://vmsoft-gbr.de

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to