diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index 64bf42f3..5e1d8ebd 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();