"Last commit" and "last update" never loads when two folders deep

Description

When accessing repositories that have folders more than 2 levels deep, my “Last Commit” and “Last Update” information never loads, just indefinitely spins a grey bar.

This happens to be on a setup running GitLab in Docker.

Here is my folder structure:

Repository/
├─ node_modules/
├─ src/
│  ├─ new_folder/
│  │  ├─ index.css
│  │  ├─ index.js
├─ public/
│  ├─ favicon.ico
│  ├─ index.html
│  ├─ robots.txt
├─ .gitignore
├─ package.json
├─ README.md
new_file

If I got to my repo in the browser, and enter the folder /src/new_folder, the information shows like the following:

If I am 1 level deep, all information shows normally:
image

Anyone has any idea why this happens?

EDIT - I checked my requests in the console of my webbrowser, and see that the last forwardslash “/” is not encoded correctly, and shows up as “%2F”. This causes a 404 not found on the information.
I think it has something to do with the URL encoding, but is that controlled by:

  1. NGINX in the container
    or
  2. My reverse proxy?

Ah I figured it out!

My web configuration was not correct, THIS had to be done on my reverse proxy (facing the user).

Summary; AllowEncodedSlashes NoDecode and add nocanon to the proxypass.

Fixed

1 Like