Page MenuHomePhabricator

"edit link" doesn't recognize namespace
Closed, ResolvedPublic

Description

In not-main namespace "edit links" points to item without namespace. For example [[it:Categoria:Storia]] goes to "Special:ItemByTitle/itwiki/Storia" ([[:d:Q309]]) and not "Special:ItemByTitle/itwiki/Categoria:Storia".


Version: unspecified
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=45223

Details

Reference
bz44536

Related Objects

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:25 AM
bzimport set Reference to bz44536.
bzimport added a subscriber: Unknown Object (MLST).

This has been fixed already. We are looking into backporting it to the Italian, Hebrew and Hungarian Wikipedia.

OK, it works now.
Thank you for resolved immediately!

  • Bug 44985 has been marked as a duplicate of this bug. ***

Can this fix be backported to enwiki as well? The issue is present there (bug 44985).

I think we can backport something in the next day or so...

The solution we prefer is to have the links go directly to the Qxxx item pages instead of using Special:ItemByTitle which is not 100% perfect yet.

roigonzalezvilla10 wrote:

This problem also happen with namespace "Wikipedia", and it will also happen
when the others Wikimedia projects is worked in Wikidata. The Wikimedia
projects are Wikibooks, Wikinews, Wiktionary, Wikiquote, Wikisource,
Wikispecies, Wikiversity and Wikivoyage.

In general you don't want to link on the identifiers, as it is weird, errorprone, and needs manual work. You want to have simple links that use the same semantics as you use on Wikipedia. You simply want to link on the names. It is possible to rewrite something like [[item:Oslo]] into [[d:Special:ItemByTitle/enwiki/Oslo]] if you are on an English Wikipedia page, and that is less error prone and much more intuitive.

  • Bug 44545 has been marked as a duplicate of this bug. ***

(In reply to comment #6)

I think we can backport something in the next day or so...

Any status update on this?

<snipped from #wikimedia-wikidata>

[09:20:34 AM] <duh> PinkAmpersand: well non mainspace links using Special:Itembytitle are broken until that fix gets backported
[09:20:51 AM] <PinkAmpersand> yeah exactly
[09:24:26 AM] <DanielK_WMDE> duh: iirc, this will be deployed in a few hours

(timestamps CST)

Whats in for now is canonical namespaces (that is Category), local namespaces (that is Categoria) will be for next rollout.

This should be fixed now. If you're still seeing problems please reopen with a link to an example.

Special:ItemByTitle still does not work for Wikipedia namespace from enwiki, for example

http://en.wikipedia.org/wiki/Wikipedia:About

Seems to work for huwiki, itwiki, etc. counterparts, as well as Category, Portal and other namespaces on enwiki.

We both need the Special:ItemByTitle page to work for everything, and we decided to directly link to the Q### pages for the edit link.

on my test client wiki, with a Wikipedia namespace, and corresponding items in my test repo, the edit link and Special:ItemByTitle *do* work.

need to investigate more why that's not the case on www.wikidata.org

Wikipedia: is conflicting with the interwiki prefix.

(In reply to comment #15)

We both need the Special:ItemByTitle page to work for everything, and we
decided to directly link to the Q### pages for the edit link.

Is there a separate bug for this? I think it would just be better to do it this way than try to put a fix together for the conflicting interwiki prefixes.

  • Bug 45416 has been marked as a duplicate of this bug. ***

If a normalization is done several times it will lead to problems. Normalization should only be done once on any given sitelink, and the normalization should be done in a similar way (or at least produce comparable results) both on the codepath for store and for retrieval.

  • Bug 45487 has been marked as a duplicate of this bug. ***

https://gerrit.wikimedia.org/r/#/c/51179/ makes it so we link directly to the Q### pages on wikidata.

Depending on John's patch, there still may be an issue with conflict between interwiki prefixes and client page titles.

Verified in Wikidata demo sprint 35-2

Restricted Application added a subscriber: StudiesWorld. · View Herald Transcript