Last modified: 2014-02-25 11:11:51 UTC
As reported on https://zh.wikivoyage.org/wiki/Wikivoyage:%E4%BA%92%E5%8A%A9%E5%AE%A2%E6%A0%88#.E5.A4.9A.E8.AF.AD.E8.A8.80.E5.85.A5.E5.8F.A3.E7.9A.84.E4.B8.AD.E6.96.87.E7.BB.B4.E5.9F.BA.E5.AF.BC.E6.B8.B8.E9.93.BE.E6.8E.A5, on https://www.wikivoyage.org portal, the link to zh.wikivoyage is https://zh.wikivoyage.org/zh-/ , https://zh.wikivoyage.org/zh-cn/ or https://zh.wikivoyage.org/zh-tw/ (which are all 404) instead of https://zh.wikivoyage.org/wiki/
Please set the keyword as i18n.
https://zh.wikipedia.org/zh-/ fails, https://zh.wikipedia.org/zh-cn/ works, https://zh.wikipedia.org/zh-tw/ works.
Hi, where exactly and how to reproduce? In the line Ελληνικά • עברית • Română • Svenska • Українська • 中文 under the search field the link goes to https://zh.wikivoyage.org/
This shouldn't be a bug on bugzilla. The portal exists at https://meta.wikimedia.org/wiki/Www.wikivoyage.org_template and should be fixed via meta
(In reply to comment #4) > This shouldn't be a bug on bugzilla. The portal exists at > https://meta.wikimedia.org/wiki/Www.wikivoyage.org_template and should be > fixed > via meta Even if the portal template is right, the HTML given by the server is still wrong. (In reply to comment #3) > Hi, where exactly and how to reproduce? > > In the line > Ελληνικά • עברית • Română • Svenska • Українська • 中文 > under the search field the link goes to > https://zh.wikivoyage.org/ Maybe because we've set "Content language variant" in our pref? I find the URL being "/zh-/" appended, and two other wikivoygers get "/zh-cn/" & "/zh-tw/".
Just found that there might actually a script causing this, as my browser gets the right URL in the first sec, and appended a wrong path a sec later.
(In reply to comment #6) > Just found that there might actually a script causing this, as my browser > gets > the right URL in the first sec, and appended a wrong path a sec later. Yeah, this is obviously caused by https://meta.wikimedia.org/wiki/MediaWiki:Gadget-wm-portal.js If you had reported on Meta I may have seen this faster, sorry. Code snippet: $("zh_wiki").href += "zh-" + locale + "/";
(In reply to comment #7) > (In reply to comment #6) > > Just found that there might actually a script causing this, as my browser > > gets > > the right URL in the first sec, and appended a wrong path a sec later. > > Yeah, this is obviously caused by > https://meta.wikimedia.org/wiki/MediaWiki:Gadget-wm-portal.js > > If you had reported on Meta I may have seen this faster, sorry. > > Code snippet: $("zh_wiki").href += "zh-" + locale + "/"; Want me to just remove the locales for zhwikivoyage?
(In reply to comment #8) > Want me to just remove the locales for zhwikivoyage? Looks good to me.
(In reply to comment #9) > (In reply to comment #8) > > Want me to just remove the locales for zhwikivoyage? > > Looks good to me. It need some consensus,I think.
(In reply to comment #10) > It need some consensus,I think. Two ways to fix: 1. Remove the locales for zhwikivoyage. 2. Set $wgVariantArticlePath True, removing the locales needs some consensus, but as $wgVariantArticlePath is not set, removing the locales IMO is a proper fix.
Could you CC someone who knows how to set $wgVariantArticlePath? The easiest fix would just be to remove locales from www.wikivoyage.org, which is just a quick HTML edit on Meta. I'm not sure how you want this to be done. Is there consensus for either change?
(In reply to comment #12) > Is there consensus for either change? No consensus; we just spot the bug and reported it.
Change 109456 had a related patch set uploaded by Reedy: Set wgVariantArticlePath for zhwikivoyage https://gerrit.wikimedia.org/r/109456
Change 109456 merged by jenkins-bot: Set wgVariantArticlePath for zhwikivoyage https://gerrit.wikimedia.org/r/109456
I've set wgVariantArticlePath as per other zh wikis
This is now fixed.
(In reply to comment #17) > This is now fixed. It's still 404. https://zh.wikivoyage.org/zh-cn/ https://zh.wikivoyage.org/zh-tw/
Reopen since I can confirm comment #18 (still 404).
Please set variant aliases on git operations/apache-config.
Not what the bug says.
(In reply to comment #21) > Not what the bug says. Please revert. https://www.wikivoyage.org _does_ _link_ _to_ https://zh.wikipedia.org/zh-* _and_ _is_ _still_ 404
https://meta.wikimedia.org/w/index.php?title=Www.wikivoyage.org_template&action=edit says otherwise.
Ignore me today, I'm apparently blind or cannot read properly ;-)
(In reply to comment #24) > Ignore me today, I'm apparently blind or cannot read properly ;-) Will /r/109456 fix this?
https://gerrit.wikimedia.org/r/#/c/110155/ hopfully will
CC'ing Reedy to hopefully get this merged (three +1s) and deployed soon.
No longer 404 (bug 60473). Marking as FIXED.