diff options
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index c418887f95d5..14d9fb4e10d3 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -658,9 +658,9 @@ static bool impl_showOnlineHelp( const OUString& rURL ) OUString aHelpLink( "https://help.libreoffice.org/help.html?" ); - aHelpLink += rURL.copy( aInternal.getLength() ); - aHelpLink = aHelpLink.replaceAll("%2F","/"); - + OUString aTarget = "Target=" + rURL.copy(aInternal.getLength()); + aTarget = aTarget.replaceAll("%2F", "/").replaceAll("?", "&"); + aHelpLink += aTarget; if (comphelper::LibreOfficeKit::isActive()) { @@ -695,8 +695,9 @@ static bool impl_showOfflineHelp( const OUString& rURL ) OUString const aInternal( "vnd.sun.star.help://" ); OUString aHelpLink( aBaseInstallPath + "/index.html?" ); - aHelpLink += rURL.copy( aInternal.getLength() ); - aHelpLink = aHelpLink.replaceAll("%2F","/").replaceAll("%3A",":"); + OUString aTarget = "Target=" + rURL.copy(aInternal.getLength()); + aTarget = aTarget.replaceAll("%2F","/").replaceAll("?","&"); + aHelpLink += aTarget; // get a html tempfile OUString const aExtension(".html"); |