summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2017-06-24 21:02:20 -0300
committerJan Holesovsky <kendy@collabora.com>2017-07-20 16:30:52 +0200
commitc73ce1dabd3cec36a3c3a4a5fcd87aef3a8bb593 (patch)
tree97cc6c795bdca19e97697f6c4b9c83524c1eb163 /sfx2
parent63c30408ba735139a88c3bddd242e320100c82cf (diff)
Change url for Help online
When the localhelp is not installed, the help is currently served by wikihelp http://help.libreoffice.org This patch makes the help pages to be served by http://helponline.libreoffice.org/index.html? + params index.html parses the params and opens the right help page. Params passed are - module (swriter,scalc,...) detected just after /text/ - HelpID is converted to valid url by bookmark2file.js - valid url is rebuild then and new contents opens on _self. Notes: * once in the website, navigation does not come back to index.html * index.html also redirect if visitor comes from elswhere Change-Id: Iab0797f64024900f906c8127d275de706ba35942 Reviewed-on: https://gerrit.libreoffice.org/39264 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/sfxhelp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 85b4b8d3e39a..cde3a0e334a7 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -530,7 +530,8 @@ static bool impl_showOnlineHelp( const OUString& rURL )
if ( rURL.getLength() <= aInternal.getLength() || !rURL.startsWith(aInternal) )
return false;
- OUString aHelpLink( "http://help.libreoffice.org/" );
+ OUString aHelpLink( "http://helponline.libreoffice.org/index.html?" );
+
aHelpLink += rURL.copy( aInternal.getLength() );
aHelpLink = aHelpLink.replaceAll("%2F","/");
try