Add a wprov parameter for measuring impact

We would like to know how many users are using this related articles
endpoint. To accomplish define a new wprov parameter (on wikitech)
and use it here. wprov is specifically defined to avoid caching
issues, this should be safe to attach to any page view to track
that page views provenance.

Bug: T358351
Change-Id: I58b450eb632a721a39b627cc34f30eb26e67be59
This commit is contained in:
Erik Bernhardson 2024-04-09 11:08:26 -07:00
parent 886606fdc5
commit ad1e1e448c

View file

@ -28,7 +28,9 @@ function getCards( pages ) {
const result = {
id: page.title,
label: page.title,
url: mw.util.getUrl( page.title ),
url: mw.util.getUrl( page.title, {
wprov: 'rarw1'
} ),
thumbnail: page.thumbnail ? {
width: page.thumbnail.width,
height: page.thumbnail.height,