Project

General

Profile

Actions

Task #2101

closed

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

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

Added by Olivier Hallot over 7 years ago. Updated over 7 years ago.

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

100%

Tags:
Documentation

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

Actions #1

Updated by Florian Effenberger over 7 years ago

  • Target version set to Pool
Actions #2

Updated by Florian Effenberger over 7 years ago

  • Assignee changed from Christian Lohmaier to Guilhem Moulin
Actions #3

Updated by Guilhem Moulin over 7 years 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
Actions #4

Updated by Olivier Hallot over 7 years 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

Actions #5

Updated by Guilhem Moulin over 7 years 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/`.

Actions

Also available in: Atom PDF