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

       Web browser: ---
             Bug #: 29115
           Summary: add redirect target value on page info (ApiQueryInfo)
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified


It would be nice to get the redirect target as info from api when querying a
redirect page.

At the current wmf live version you have to parse the page content for getting
the correct redirect target. That should be unnecessary in future because of
bug 28952.
But you still have to make two api requests (without and with
redirect-Parameter) if you are also interested in informations about the
redirect page. (E.g. if it's a staticredirect using page=pageprops). 

It would be much easier if the redirect target information is also included in
the page information when querying a page that is a redirect.

My suggestion would be that prop=info should contain this information in its
redirect value. At the moment redirect="" is returned. This could be changed to
redirect="iw:targetpage#anker", a combination of interwiki, fulltitle and
fragment (splitting is not needed).

This shouldn't break existing tools because at the moment only the existence of
this redirect attribute is tested and the value is ignored.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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