提交 529376bb 编写于 作者: C Christian Simon

[BUGFIX] User suggest at team_members/new not working with relative_url_root

* Closing #3540
* Closing #3704
上级 75fbdc40
......@@ -50,4 +50,5 @@
callback(users)
buildUrl: (url) ->
url = gon.relative_url_root + url if gon.relative_url_root.present?
return url.replace(':version', gon.api_version)
......@@ -155,5 +155,6 @@ class ApplicationController < ActionController::Base
gon.api_version = Gitlab::API.version
gon.api_token = current_user.private_token if current_user
gon.gravatar_url = request.ssl? ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url
gon.relative_url_root = Gitlab.config.gitlab.relative_url_root
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册