Kaydet (Commit) 0bf858a7 authored tarafından Andras Timar's avatar Andras Timar Kaydeden (comit) Petr Mladek

fdo#64211 replace "%2F" to "/" in online (wiki) help URLs

It is not possible to create wiki pages with URLs that have %2F in
them. Help URLs contain %2F, when invoked from dialogs that are
based on .ui files, it seems this is the new HID syntax.

For example for Zoom dialog LibreOffice used to call
http://help.libreoffice.org/simpress/cui%2Fui%2Fzoomdialog%2Fzoomsb
and it did not work. Now it calls
http://help.libreoffice.org/simpress/cui/ui/zoomdialog/zoomsb
and it works.
Signed-off-by: 's avatarMiklos Vajna <vmiklos@suse.cz>

Conflicts:

	sfx2/source/appl/sfxhelp.cxx

Change-Id: I163cf8ec3b69f31eadbbd9085d2180839fe91e07
üst a4ca6759
...@@ -660,6 +660,7 @@ static bool impl_showOnlineHelp( const String& rURL ) ...@@ -660,6 +660,7 @@ static bool impl_showOnlineHelp( const String& rURL )
OUString aHelpLink( "http://help.libreoffice.org/" ); OUString aHelpLink( "http://help.libreoffice.org/" );
aHelpLink += rURL.Copy( aInternal.Len() ); aHelpLink += rURL.Copy( aInternal.Len() );
aHelpLink = aHelpLink.replaceAll("%2F","/");
try try
{ {
Reference< XSystemShellExecute > xSystemShell( Reference< XSystemShellExecute > xSystemShell(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment