Skip to content
Snippets Groups Projects
Commit 529376bb authored by Christian Simon's avatar Christian Simon
Browse files

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

* Closing #3540
* Closing #3704
parent 75fbdc40
No related branches found
No related tags found
1 merge request!3704[BUGFIX] User suggest at team_members/new not working with relative_url_root
Loading
Loading
@@ -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)
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment