Hello,
I have been customizing my own Moodle Mobile application, and I'm trying to further customize the side menu items as per my needs.
Specifically, I want to redirect the "Help" button to take me to a page other than "https://docs.moodle.org/31/en/Moodle_Mobile".
As the app is built on angular JS and I am terribly new to this, I am struggling to pinpoint what I need to exactly change, and which file it's located in.
I tried editing mm.bundle.js, changing the following:
self.getDocsUrl = function(release, page) { page = page || 'Mobile_app'; var docsurl = 'https://docs.moodle.org/en/' + page; if (typeof release != 'undefined') { var version = release.substr(0, 3).replace(".", ""); if (parseInt(version) >= 24) { docsurl = docsurl.replace('https://docs.moodle.org/', 'https://docs.moodle.org/' + version + '/'); } } return $mmLang.getCurrentLanguage().then(function(lang) { return docsurl.replace('/en/', '/' + lang + '/'); }, function() { return docsurl; }); };
to return a different value for docsurl, but it ended up causing the app to stop loading.
Thank you for your help!