Browse Source

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

tags/v4.0.0
jasder 4 years ago
parent
commit
9cd54b0ccb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb 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}"


Loading…
Cancel
Save