FIX 解决老版本trustie项目链接错误的问题

This commit is contained in:
jasder 2021-10-25 17:24:28 +08:00
parent 401798ebdd
commit 9cd54b0ccb
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class UsersController < ApplicationController
def trustie_related_projects
projects = Project.includes(:owner, :members, :project_score).where(id: params[:ids]).order("updated_on desc")
projects_json = []
domain_url = EduSetting.get('host_name') + '/projects'
domain_url = EduSetting.get('host_name')
if projects.present?
projects.each do |p|
project_url = "/#{p.owner.login}/#{p.identifier}"