This commit is contained in:
yystopf 2022-05-12 17:15:19 +08:00
parent 00fc83235f
commit 4dccdfde97
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Traces::ProjectsController < Traces::BaseController
domain = Trace.trace_config[:domain]
base_url = Trace.trace_config[:base_url]
url = "/user/pdfreport?task_id=#{params[:task_id]}"
file_path = [domain, api_url, url].join
file_path = [domain, base_url, url].join
request.headers["Authorization"] = current_user.trace_token
redirect_to file_path
rescue Exception => exception