fix: settings need prefix

This commit is contained in:
yystopf 2022-04-08 15:03:40 +08:00
parent 551f333261
commit eac7331070
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class SettingsController < ApplicationController
def get_navbar
@navbar = default_laboratory.navbar
if User.current.logged?
pernal_index = {"name"=>"个人主页", "link"=>get_site_url("url", "/current_user"), "hidden"=>false}
pernal_index = {"name"=>"个人主页", "link"=>get_site_url("url", "#{Rails.application.config_for(:configuration)['platform_url']}/current_user"), "hidden"=>false}
@navbar << pernal_index
end
end