[1.22.0] Avatars in @ mentions not loaded with Gitea in subpath #13230

Closed
opened 2025-11-02 10:35:38 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @FrostKiwi on GitHub (Jul 3, 2024).

Description

Regression by updating from 1.21.5 to 1.22.0: Avatars are invisible and have broken URLs when typing an @ mention, see screenshot below.

Gitea is hosted as a sub-path. Not domain.com but domain.com/git
app.ini is configured to handle this:

[server]
SSH_DOMAIN = domain.net/git
DOMAIN = domain.net/git
HTTP_PORT = 3000
ROOT_URL = https://domain.net/git/

There have been a multitude of issues from time to time with Gitea being configured as a sub-path, with various files either missing or having a doubled sub path in their path and thus being unreachable.

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

Installed via Binary

Database

None

Originally created by @FrostKiwi on GitHub (Jul 3, 2024). ### Description Regression by updating from `1.21.5` to `1.22.0`: Avatars are invisible and have broken URLs when typing an @ mention, see screenshot below. Gitea is hosted as a sub-path. Not `domain.com` but `domain.com/git` `app.ini` is configured to handle this: ``` [server] SSH_DOMAIN = domain.net/git DOMAIN = domain.net/git HTTP_PORT = 3000 ROOT_URL = https://domain.net/git/ ``` There have been a multitude of issues from time to time with Gitea being configured as a sub-path, with various files either missing or having a doubled sub path in their path and thus being unreachable. ### Gitea Version 1.22.0 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/60887273/9881b6a2-0748-48f2-808c-bbdd06ac9b8a) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Installed via Binary ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:35:38 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Jul 4, 2024):

It has been fixed in 1.22-nightly and 1.22.1

Fix duplicate sub-path for avatars (#31365) #31368

@wxiaoguang commented on GitHub (Jul 4, 2024): It has been fixed in 1.22-nightly and 1.22.1 Fix duplicate sub-path for avatars (#31365) #31368
Author
Owner

@yp05327 commented on GitHub (Jul 4, 2024):

As this has been fixed, I will close this issue. Feel free to reopen it if you have any questions.

@yp05327 commented on GitHub (Jul 4, 2024): As this has been fixed, I will close this issue. Feel free to reopen it if you have any questions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13230