Task #1983
closedaskbot normalization for documentation
100%
Description
I need to normalize askbot URLs for easier access. This relates to bug https://bugs.documentfoundation.org/show_bug.cgi?id=96015
At the moment the askbot service is per language and not per locale. That means, the /en/ askbot serves for en-US, en-UK, en-SA, etc...
The current askbot URLs exists in this logic:
ask.libreoffice.org/de/questions
ask.libreoffice.org/en/questions
ask.libreoffice.org/es/questions
...
but for Portuguese, we have
ask.libreoffice.org/pt-br/questions
1) can I get a symlink or redirect from
ask.libreoffice.org/pt/questions
to
ask.libreoffice.org/pt-br/questions
2) can I get a missing language to fall-back to /en/? Today a missing language returns a customized 404 page.
Updated by Olivier Hallot over 8 years ago
Patch for LibreOffice depending on this:
Updated by Florian Effenberger over 8 years ago
- Project changed from Documentation to Infrastructure
- Category set to AskLibO
- Assignee set to Christian Lohmaier
- Target version set to Pool
Updated by Christian Lohmaier over 8 years ago
added a 303 (see other) redirect for /pt/(.*) to /pt-br/$1
Not convinced that a redirect to en is usefull for all other non-matches. Rather the 404 not found page should have pointers to the available languages.
Updated by Olivier Hallot over 8 years ago
Excellent for pt-br... works perfectly.
On 404, I agree as well.
Available languages for Ask:
Arabic (ar)
German (de)
English (en)
Spanish (es)
Croatian (hr)
Italian (it)
Japanese (ja)
Korean (ko)
Portuguese (pt)
Romanian (ro)
Updated by Florian Effenberger over 8 years ago
Can we update the 404 page manually, Olivier, is there a setting in the AskBot web interface?
Updated by Olivier Hallot over 8 years ago
I don't see where to change the 404 page contents in the Settings UI, although it is translated in the browser language.
(It will be nice to be able to modify the 404 contents at the web UI in the Ask settings.)
Updated by Florian Effenberger over 8 years ago
I just poked Evgeny to see how easy that is (so we don't mess up with his regular updates/git pulls)
Updated by Florian Effenberger over 8 years ago
404 page editing is not possible at the moment - checking how much work/budget it would require atm
Updated by Olivier Hallot about 8 years ago
This is the list of URL that will be activated when user click on link "Get Help Online...", according to the discussions
Incoming link:
http://hub.libreoffice.org/forum/?&LOlang
where LOLang is one of the languages below.
Askbot links:
Arabic (ar) https://ask.libreoffice.org/ar/questions/
Czech (cs) https://ask.libreoffice.org/cs/questions/
Slovak (sk) https://ask.libreoffice.org/sk/questions/
German (de) https://ask.libreoffice.org/de/questions/
English (en) https://ask.libreoffice.org/en/questions/
Spanish (es) https://ask.libreoffice.org/es/questions/
Croatian (hr) https://ask.libreoffice.org/hr/questions/
Italian (it) https://ask.libreoffice.org/it/questions/
Japanese (ja) https://ask.libreoffice.org/ja/questions/
Korean (ko) https://ask.libreoffice.org/ko/questions/
Dutch (nl) https://ask.libreoffice.org/nl/questions/
Portuguese (pt) https://ask.libreoffice.org/pt/questions/
Romanian (ro) https://ask.libreoffice.org/ro/questions/
Norwegian (nn) https://ask.libreoffice.org/en/questions/
Norwegian (nb) https://ask.libreoffice.org/en/questions/
Guarani (es) https://ask.libreoffice.org/es/questions/
Lithuanian (lt) https://ask.libreoffice.org/en/questions/
Turkish (tr) https://ask.libreoffice.org/tr/questions/
Non-askbot links:
Chinese (cn) http://www.libreofficechina.org/forum.php?from=UI
French (fr) https://fr.libreoffice.org/get-help/poser-une-question
Russian (ru) http://forumooo.ru/
Danish (da) http://forum.liboforum.dk/
Tamil (ta) http://ta.libreoffice.org/
Slovenian (sl) http://sl.libreoffice.org/po-pomoc/podpora-skupnosti/
Updated by Florian Effenberger almost 8 years ago
Olivier Hallot wrote:
This is the list of URL that will be activated when user click on link "Get Help Online...", according to the discussions
Editing of the 404 pages is currently not possible. We might order that (with fresh budget) in 2017, but right now, it's not possible.
What request remains then?
I see "redirect from ask.libreoffice.org/pt/questions to ask.libreoffice.org/pt-br/questions"
What else needs doing?
Updated by Olivier Hallot almost 8 years ago
Ouch!
My comment #9 was inserted proly by mistake although it is related because of the hub URL.
From bug#96015, a "Get Help Online" entry is added to the Help menu of LibreOffice. This entry will bring the user to the page indicated by comment #9.
Because of the 2nd bug hunting session, it will be nice to have it ready.
NOTE: the 'de' and 'ru' sites are under discussion becasue they point to a AOO infra and brand.
Updated by Florian Effenberger almost 8 years ago
Updated by Olivier Hallot almost 8 years ago
- Assignee changed from Christian Lohmaier to Guilhem Moulin
Assigning to Guilhem.
Please look at comment #9.
IMHO the deadline is 5.3 release date...
Updated by Guilhem Moulin almost 8 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Added redirects for all of these: [[http://hub.libreoffice.org/forum/?&LOlang=(nn|nb|lt)]] are redirected to [[https://ask.libreoffice.org/en/questions/]], cn/fr/ru/da/ta/sl have the language-specific, non ask.lo redirections URI you specified, and all the rest is redirected to [[https://ask.libreoffice.org/$LOlang/questions/]] (preserving the 404 for missing forums).
Updated by Guilhem Moulin almost 8 years ago
- Status changed from Resolved to Closed
Updated by Guilhem Moulin almost 8 years ago
- Status changed from Closed to In Progress
Updated by Kevin Suo almost 8 years ago
For Simplified Chinese,when I click the Get Help Online menu, it opens:
http://hub.libreoffice.org/forum/?LOlang=zh
and then redirects to:
https://ask.libreoffice.org/zh/questions/
which does not exist.
In the redmine list we have the item:
Chinese (cn) http://www.libreofficechina.org/forum.php?from=UI
So the issue may be related to "zh" and "cn" strings.
For the zh locale, we have zh_cn (Simplified Chinese) and zh_tw (Traditional Chinese) variants, which both are active locales in libreoffice.
I suggest we add redirect for "zh" to http://www.libreofficechina.org/forum.php?from=UI (we have both Simplified and Tranditional support in the site), I assume the zh_tw team will agree.
Updated by Guilhem Moulin almost 8 years ago
- Status changed from In Progress to Rejected
Fixed mandarin's ISO 639-1 code (s/cn/zh)
Updated by Guilhem Moulin almost 8 years ago
- Status changed from Rejected to Closed