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

       Web browser: ---
             Bug #: 35858
           Summary: redirectToFragment shouldn't use legacy javascript
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Redirects
        AssignedTo: [email protected]
        ReportedBy: [email protected]
            Blocks: 33836
    Classification: Unclassified
   Mobile Platform: ---


If a redirect points to a page with an anchor, an inline script is added to the
page, which calls redirectToFragment() from wikibits.js.

As there is now the possibility to turn off loading of wikibits.js via
$wgIncludeLegacyJavaScript, the inline script should be replaced with something
more modern.

Possible fix: Add a mw.config variable like wgRedirectFragment to the page and
put the functionality of redirectToFragment() into mediawiki.page.startup.

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