diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index 64bf42f34..5e1d8ebd2 100644 --- a/public/ng/js/gogs.js +++ b/public/ng/js/gogs.js @@ -616,7 +616,7 @@ function initProfile() { } $(document).ready(function () { - Gogs.AppSubUrl = $('head').data('suburl'); + Gogs.AppSubUrl = $('head').data('suburl') || ''; initCore(); if ($('#user-profile-setting').length) { initUserSetting();