By default Moodle will open custom menu links in the current browser window, which works well if all of your custom menu links point to pages inside your Moodle site. However, if you’d like to point to an external link (eg. your organisation’s official website), it’s best to make the link open a new browser window/tab. That way your users are not being taken away from your Moodle site after clicking the link.
Below are the steps you can follow to make your custom menu links open in a new browser window.
Log in to your Moodle site as an admin user, and navigate to the “Theme Settings” option under the Administration block:
Administration > Site administration > Appearance > Themes > Theme settings
Find the Custom menu items section and add
"target="_blank after the desired link target URL.
The figure below shows how we make all of the external links in our Moodle demo open new windows.
You can try our Moodle demo to see the menu behaviour yourself.
Want to master Moodle?
Moodle Tutorial for Educators - Learn Moodle to create WORLD CLASS online courses. Leverage Moodle 3 like a BOSS!
Are you a Moodle admin?
Learn World Class Moodle LMS Admin, Configure, Theme, Manage Courses, Users, Permissions, Roles, Security, Plugins...