diff --git a/apps/documenteditor/mobile/app/controller/Settings.js b/apps/documenteditor/mobile/app/controller/Settings.js index a6e2aab72..b21d47114 100644 --- a/apps/documenteditor/mobile/app/controller/Settings.js +++ b/apps/documenteditor/mobile/app/controller/Settings.js @@ -554,6 +554,9 @@ define([ onShowHelp: function () { var url = '{{HELP_URL}}'; + if (url.charAt(url.length-1) !== '/') { + url += '/'; + } if (Common.SharedSettings.get('android')) { url+='mobile-applications/documents/android/index.aspx'; } else if (Common.SharedSettings.get('sailfish')) { diff --git a/apps/presentationeditor/mobile/app/view/Settings.js b/apps/presentationeditor/mobile/app/view/Settings.js index bf73f44a4..5d8e3a08e 100644 --- a/apps/presentationeditor/mobile/app/view/Settings.js +++ b/apps/presentationeditor/mobile/app/view/Settings.js @@ -181,6 +181,9 @@ define([ showHelp: function () { var url = '{{HELP_URL}}'; + if (url.charAt(url.length-1) !== '/') { + url += '/'; + } if (Common.SharedSettings.get('android')) { url+='mobile-applications/documents/android/index.aspx'; } else if (Common.SharedSettings.get('sailfish')) { diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js index 67542bfc6..55153f717 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js @@ -113,6 +113,9 @@ define([ 'page:show' : this.onPageShow , 'settings:showhelp': function(e) { var url = '{{HELP_URL}}'; + if (url.charAt(url.length-1) !== '/') { + url += '/'; + } if (Common.SharedSettings.get('android')) { url+='mobile-applications/documents/android/index.aspx'; } else if (Common.SharedSettings.get('sailfish')) { diff --git a/build/Gruntfile.js b/build/Gruntfile.js index 37c317e18..6cf6ff6a0 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -43,6 +43,9 @@ module.exports = function(grunt) { }, { from: /\{\{APP_TITLE_TEXT\}\}/g, to: process.env['APP_TITLE_TEXT'] || 'ONLYOFFICE' + }, { + from: /\{\{HELP_URL\}\}/g, + to: process.env['HELP_URL'] || 'https://helpcenter.onlyoffice.com' }]; var helpreplacements = [