Commit 529376bb authored by Christian Simon's avatar Christian Simon

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

* Closing #3540
* Closing #3704
parent 75fbdc40
...@@ -50,4 +50,5 @@ ...@@ -50,4 +50,5 @@
callback(users) callback(users)
buildUrl: (url) -> buildUrl: (url) ->
url = gon.relative_url_root + url if gon.relative_url_root.present?
return url.replace(':version', gon.api_version) return url.replace(':version', gon.api_version)
...@@ -155,5 +155,6 @@ class ApplicationController < ActionController::Base ...@@ -155,5 +155,6 @@ class ApplicationController < ActionController::Base
gon.api_version = Gitlab::API.version gon.api_version = Gitlab::API.version
gon.api_token = current_user.private_token if current_user 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.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
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment