I'm using gitlab (7.10.4 337225a4) inside docker (sameersbn/docker-gitlab) and I've some issues in gitlab when setting a relative url (config.relative_url_root). I've set the relative url to "/gitlab" and in the network view of projects, the user avatars are referenced incorrectly now. See my issue on github for details: https://github.com/sameersbn/docker-gitlab/issues/326.
Also I have the same issue (reference to /gitlab/gitlab/... instead of /gitlab/...) when trying to login after (at least) one failed try (e.g. with wrong password): then I'm redirected to gitlab/gitlab/users/sign_in instead of gitlab/users/sign_in and an error 404 page appears ("The page you were looking for doesn't exist."). When the first login attempt is correct (right username and right password), I'm redirected correctly.
Thanks for help :)
Designs
An error occurred while loading designs. Please try again.
Child items
0
Show closed items
GraphQL error: Variable $iid of type ID! was provided invalid value
No child items are currently open.
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
To check this issue, I installed gitlab from source on a virtual machine (no docker) and made the following changes as described in config/application.rb
In your application.rb file: config.relative_url_root = "/gitlab"
In your gitlab.yml file: relative_url_root: /gitlab
In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
This is of course no solution, just a quick workaround. As you can see in my second rewrite-instruction, it also happens sometimes (e.g. when using custom avatars) that the relative '/gitlab' is put in from of the domain for some strange reason.
The emoji problem has to do with asset_root being set to the full external URL (e.g. http://mydomain.com/gitlab), and the path helpers return the full path as well (e.g. /gitlab/assets/emoji/XXX). I think we need to set asset_root to the host's base URL. I'm guessing there are other instances like this.
@sameer FYI, I believe the login redirection bug should be fixed in Devise 3.5.3. This should be available in master and in 8.3, so please let me know if this works for you.