Page MenuHomePhabricator

change showcurid to show wiki url as oposed to /w/index.php...
Closed, ResolvedPublic

Description

Currently, when using showcurid=true in a DPL, it gives urls like:
http://en.wikinews.org/w/index.php?title=CanadaVOTES:_Libertarian_Kevin_Stricker_running_in_Saskatoon%E2%80%94Rosetown%E2%80%94Biggar&curid=113852

Well this is essentially what we (wikinews) need for google news, there is a problem. The googlebot i believe is prevented via robots.txt from browsing w/index.php... pages.

Would it be possible to make showcurid=true use urls like
http://en.wikinews.org/wiki/CanadaVOTES:_Libertarian_Kevin_Stricker_running_in_Saskatoon%E2%80%94Rosetown%E2%80%94Biggar?curid=113852
instead?

Thanks, Bawolff

p.s. Bastique told me to assign this to Aaron. I've never actually assigned a bug to anybody when entering it, so i hope i did that right. sorry, if i messed that up and it causes any confusion.


Version: unspecified
Severity: enhancement

Details

Reference
bz15739

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:23 PM
bzimport set Reference to bz15739.

mattj wrote:

Feature added in r41301, needs to be enabled by a shell once scapped.

mattj wrote:

According to Special:Version this should be active, so just waiting on a shell to add the config setting.

That code looks pretty ugly to me. It's not clearly self-documenting (in getLocalUrl()'s code) and the option is wayyyyyy too specific to seem reasonable.

I recommend backing this change out. A more suitable "temporary hack" would be to just change DynamicPageList to slap that specific option on after the regular URL.

Reverted r41301 and r41332 in r41402.

mattj wrote:

Should be re-added in r41410 and r41411.

I ended up reverting that in r41507 due to some interwiki breakage.