Gitlab redirects to invalid host on POST request


This is an issue that I haven’t been able to figure out on my own. I have looked through all of the data generated by gitlab.

  • grepping the entire server running the gitlab instance
  • grepping all config files
  • grepping a data dump of the database

problem description

This is a weird issue where I can navigate around my gitlab instance quite happily until I want to do something.

I want to create an issue on my project:

navigate to

fill in details of the issue press Submit issue.


Redirect to:


Redirect to:

I have looked through all of the generate data that gitlab has created. I have also looked at the environment of the server as well as all of the files (as mentioned at the top). I have found no reference to the hash displayed above.

I believe something is happening in the gitlab source code, but cannot navigate the code efficiently enough to pin down where the values are being generated.

Any help on the call path of a post request (and it’s subsequent redirect logic) would be greatly appreciated in pinning down this issue.