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

       Web browser: ---
            Bug ID: 48476
           Summary: VisualEditor: MWLinkTargetInputWidget should not show
                    red link if input is the suggested page title
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Editing Tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 12316
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=12316&action=edit
Screenshot of problem

Scenario:
* Document contains " ... esams ... "
* Wiki has a page called "Esams".
* Wiki does not have case-sensitive first character in the main namespace.
* Select "esams" and turn it into a link
* UI shows:
  [ esams            ]
  New page:
    <redlink> esams
  Matching page:
    Esams
    Esams cluster
    Esams patches

That first redlink is incorrect, it should show the same as when the input is
"Esams" (with capital E), namely no "redlink" since the first match is in fact
the input.

It needs to account for the $wgCapitalLinkOverrides and $wgCapitalLinkOverrides
configuration etc. This is abstracted in PHP by MWNamespace::isCapitalized,
which is exposed in javascript as 'wgCaseSensitiveNamespaces' in mw.config.

-- 
You are receiving this mail because:
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