Project

General

Profile

Task #2101

Task #2024: Create a new sub-domain 'documentation.libreoffice.org'

Link hub.libreoffice.org/documentation to documentation.libreoffice.org/

Added by Olivier Hallot about 1 year ago. Updated about 1 year ago.

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

100%

Estimated time:
Tags:
Documentation
URL:

Description

A new entry in Help menu "User Guides" must point to http://documentation.libreoffice.org.

The URL called by the Help menu is

"http://hub.libreoffice.org/documentation/?LOlocale=" + utl::ConfigManager::getLocale());

and must redirect to

http://documentation.libreoffice.org/LOlocale

If possible, default fall-back is english, or 404

History

#1 Updated by Florian Effenberger about 1 year ago

  • Target version set to Pool

#2 Updated by Florian Effenberger about 1 year ago

  • Assignee changed from Christian Lohmaier to Guilhem Moulin

#3 Updated by Guilhem Moulin about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Done.

~$ curl -I https://hub.libreoffice.org/documentation
HTTP/1.1 302 Found
Date: Mon, 21 Nov 2016 10:43:44 GMT
Server: Apache
Location: https://documentation.libreoffice.org
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=iso-8859-1

#4 Updated by Olivier Hallot about 1 year ago

  • Status changed from Closed to New

I am reopening because when I click on the help menu "User Guides" in a pt-BR locale I am sent to

http://documentation.libreoffice.org/en/english-documentation/?LOlocale=pt-BR

It should have sent me to

http://documentation.libreoffice.org/pt-BR

So LOlocale is a parameter that selects the proper page in the target URL

#5 Updated by Guilhem Moulin about 1 year ago

  • Status changed from New to Closed

Oops apologies, I didn't read the ticket carefully :-/

It should do what you want now.

~$ curl -I https://hub.libreoffice.org/documentation/?LOlocale=blah
HTTP/1.1 302 Found
Date: Mon, 21 Nov 2016 12:28:42 GMT
Server: Apache
Location: https://documentation.libreoffice.org/blah
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=iso-8859-1

I added a 302 redirection from `$scheme://hub.libreoffice.org/documentation/` to
`$scheme://documentation.libreoffice.org/$LOlocale`, where `$LOlocale` is the value of the `LOlocale` parameter found in the query string. If the query string doesn't have a `LOlocale` parameter, then the location of the destination is just `$scheme://documentation.libreoffice.org/`.

Also available in: Atom PDF