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

       Web browser: ---
             Bug #: 32621
           Summary: Root /Foo style article paths and action paths
                    conflict
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


It seams that root urls and action paths can have a bit of a conflict:

Under this setup:
$wgArticlePath = "/$1";
$wgActionPaths['edit'] = "/edit/$1";

Our code inside WebRequest.php parses the article path first, as a result the
edit url /edit/Foo is interpreted as the article [[Edit/Foo]].

We may want to re-order the way we parse paths inside WebRequest.

Or perhaps we should replace the way we parse WebRequest sequentially with a
system that will give more specific paths dominance.

ie: If we have /* and /edit/* then /edit/* will win out over /* because it's
more dominant. An unlikely circumstance like $wgActionPath = "/wiki/*" and
$wgArticlePath['render'] = "/*"; would work if we went based on specificity
instead of sequential parsing order.

-- 
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