Project

General

Profile

Task #1988

Redirects from hub.libreoffice.org to ask.libreoffice.org

Added by Olivier Hallot over 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
Webserver
Target version:
Team - Q4/2016
Start date:
Due date:
% Done:

0%

Estimated time:
Tags:
URL:

Description

From discussions on hard-coded external links int the c++ code we need to implement the following redirects

hub.libreoffice.org/ask/<lang> -> ask.libreoffice.org/<lang>/questions

Special case of France
hub.libreoffice.org/ask/fr -> http://forum.openoffice.org/fr/forum

Current avalilable languages
Arabic (4)
German (642)
English (16,910)
Spanish (478)
Croatian (2)
Italian (184)
Japanese (77)
Korean (20)
Portuguese (984)
Romanian (12)

History

#1 Updated by Christian Lohmaier over 1 year ago

  • Category set to Webserver
  • Status changed from New to Feedback
  • Assignee set to Christian Lohmaier
misconceptions:
  • hub.libreoffice.org/foo/<lang> is not what would be used from within LO - rather LO should pass parameters like the send-feedback one would do (something like LOversion=5.1.1.3&LOlocale=es&LOmodule=DrawingDocument) - so URLs should just be hub.libreoffice.org/something
  • having it "ask", but directing to something else for fr already, and only having ask available already shows it is a badly chosen generic URL (see also my comment on https://gerrit.libreoffice.org/#/c/27028/ - that menu item should not have askbot in mind, for that too few languages make use of it, rather it should be some more generic term)
  • for a site like ask, having dedicated redirects for languages is unnecessary, as those pick languages by the browser preferences

Intended use of hub.libreoffice.org/somemoregenericterm would be to redirect to ask.libreoffice directly for the languages where it exists, and point to language-specifc alternatice resources (i.e. the french forum) or a page like http://www.libreoffice.org/get-help/community-support/ (except that it would point to the various resources in the different languages) for those languages that don't have a preferred system for user questions (but rather use mailinglist, social-media or other stuff)

So feedback/waiting state until the more generic term is agreed upon.../the fate of the pull request is clear.

#2 Updated by Olivier Hallot over 1 year ago

Please provide the right URL/name of param to put in C++ and the UI string to replace "Questions & Anwsers...". I'll be glad to amend the patch.

Per ESC advise, I am trying to fix bug#96015:

+ filed a bug to add help menu entries
+ https://bugs.documentfoundation.org/show_bug.cgi?id=96015
Added request for additional info to make it a valid EasyHack (jani)

#3 Updated by Olivier Hallot over 1 year ago

Since no response.

I'm willing to put this call to hub.
-----8<-----------
sal_Int32 ix = utl::ConfigManager::getLocale().indexOf("-",0);
OUString aLang;
if (ix == -1)
aLang = utl::ConfigManager::getLocale();
else
aLang = utl::ConfigManager::getLocale().copy(0,ix);

OUString sURL("http://hub.libreoffice.org/forum/?&LOlang=" + aLang);

-----8<-----------

On the language of ask, my take is that what counts is the locale of LO UI and not the locale of the browser. You may be using a english UI in a non english computer.

#4 Updated by Florian Effenberger over 1 year ago

  • Status changed from Feedback to In Progress
  • Target version set to Q3/2016

Let's discuss this in Monday's team call - there have been open questions but I didn't get to look into this yet, so phone is best; sorry for the delay

#5 Updated by Florian Effenberger over 1 year ago

I think the main scope of this ticket has been handled, so it can be closed - Olivier, any objections? (The patch is a different topic IMHO)

#6 Updated by Olivier Hallot over 1 year ago

The patch has not been merged to master, awaiting approval.

My local copy does not send user to askbot, but to main website.

#7 Updated by Olivier Hallot over 1 year ago

Patch approved

Mail to L10n list for targtes redirection sent.
Feedback so far

Croatian (hr) -> ask.libreoffice.org/hr/questions
Simplified Chinese:http://www.libreofficechina.org/forum.php?from=UI
Russian: http://forumooo.ru/

#8 Updated by Florian Effenberger about 1 year ago

Olivier Hallot wrote:

Patch approved

Mail to L10n list for targtes redirection sent.
Feedback so far

Croatian (hr) -> ask.libreoffice.org/hr/questions
Simplified Chinese:http://www.libreofficechina.org/forum.php?from=UI
Russian: http://forumooo.ru/

Any further feedback received so far?

#9 Updated by Olivier Hallot about 1 year ago

This ticket is also been handled in redmine#1983 which has more information.

#10 Updated by Florian Effenberger about 1 year ago

So it's a duplicate and this one can be closed?

#11 Updated by Florian Effenberger about 1 year ago

  • Assignee changed from Christian Lohmaier to Guilhem Moulin
  • Target version changed from Q3/2016 to Q4/2016

Olivier Hallot wrote:

This ticket is also been handled in redmine#1983 which has more information.

Is that really the same? This one is about hub, the other about ask directly. Can you clarify?

#12 Updated by Olivier Hallot about 1 year ago

Yes it is the same issue.

#13 Updated by Florian Effenberger about 1 year ago

To recap:

Ticket #1983 is about
1. getting a redirect for ask/pt to ask/pt-br
2. if possible get a specific redirect in nginx for unknown/not
available languages in AskBot (e.g. a match like ask/xx and ask/xx-xx)

Ticket #1988 is about adding some new static URLs at hub

Correct?

#14 Updated by Guilhem Moulin 11 months ago

Should we close this now that #1983 has been resolved?

#15 Updated by Guilhem Moulin 11 months ago

  • Status changed from In Progress to Closed

Closed per IRC discussion with Olivier.

Also available in: Atom PDF