Repo links pointing to wrong base URL (introduced by #3093) #1364

Closed
opened 2025-11-02 03:58:01 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @dllud on GitHub (Dec 15, 2017).

#3093 introduced a bug for me. At templates/explore/repo_list.tmpl you are now using {{.HTMLURL}} as base URL instead of {{AppSubUrl}}. Can you please revert it back to {{AppSubUrl}}?

Due to network constraints I have to visit my Gitea through 2 different URLs, a LAN-only URL (e.g. http://gitea.lan) and a WAN URL via a reverse-proxy (e.g. https://my.awsome.gitea). Up till 1.3.1 all links inside Gitea pointed to the correct URL. With 1.3.2, when I visit Gitea via the LAN URL I get repo links pointing to the WAN URL (which is configured as ROOT_URL). All other links in the interface still point to the correct URL (those are still using {{AppSubUrl}}).

Originally created by @dllud on GitHub (Dec 15, 2017). #3093 introduced a bug for me. At [templates/explore/repo_list.tmpl](https://github.com/go-gitea/gitea/pull/3093/files#diff-75aa7099983ff3dd09dd6b2603c54c23) you are now using `{{.HTMLURL}}` as base URL instead of `{{AppSubUrl}}`. Can you please revert it back to `{{AppSubUrl}}`? Due to network constraints I have to visit my Gitea through 2 different URLs, a LAN-only URL (e.g. http://gitea.lan) and a WAN URL via a reverse-proxy (e.g. https://my.awsome.gitea). Up till `1.3.1` all links inside Gitea pointed to the correct URL. With `1.3.2`, when I visit Gitea via the LAN URL I get repo links pointing to the WAN URL (which is configured as `ROOT_URL`). All other links in the interface still point to the correct URL (those are still using `{{AppSubUrl}}`).
GiteaMirror added the type/enhancement label 2025-11-02 03:58:01 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1364