https://bugzilla.wikimedia.org/show_bug.cgi?id=39611

       Web browser: ---
             Bug #: 39611
           Summary: unclear title casing behaviour of
                    generatePageEventName()
           Product: MediaWiki extensions
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: E3 Experiments
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


I don't understand the intent of the case-munging code in
experiments/communityClicks.js.

Given the page
https://www.mediawiki.org/wiki/Requests_for_comment/Account_creation

mw.config.get( 'wgTitle' ) 
  -> "Requests for comment/Account creation"

toTitleCase(  mw.config.get( 'wgTitle' ) )
  -> "Requests For Comment/account Creation" , which won't work as a wiki link.

generatePageEventName( 'click' )
  -> "requestsForComment/accountCreationClick"


Could mw.config.get( 'wgRelevantPageName' ) as used in
experiments/trackEdits.js replace this code ?  That produces
  -> "Requests_for_comment/Account_creation"

I'd love to write tests for it if I knew what it was trying to do ;-)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

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

Reply via email to