Page MenuHomePhabricator

mw.config wgRevisionId return 0 with diffonly=1
Open, Needs TriagePublic


The doc said "The revision ID of ... the right revision for diff views.".
But when you enable preferences "Do not show page content below diffs" or use url diffonly=1, this variable return 0.
Compare following two links:

Expect run mw.config.get('wgRevisionId') in browser console with second url return 911547240 instead of 0.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krinkle subscribed.

This is not an issue with the mw.config system but rather with how the Diff system decides to export values to it. The values it exports are making it through without issue.