Skip to content

Submodule links not recognized by web ui when SSH_DOMAIN is used #12747

@MartB

Description

@MartB
  • Gitea version (or commit ref): 1.12.4

Description

When using a different domain for ssh access, submodules links are not correct within the gitea web interface.

Having a .gitmodules set up like this:

...
url = ssh://gitea@ssh.martb.eu/....

and a gitea instance set up with https://git.martb.eu/ with its SSH_DOMAIN set to ssh.martb.eu leads to ssh. being used as a http href instead of gitea translating it to the "known" git. domain.

Affected lines

{{$refURL := $commit.RefURL AppUrl $.Repository.FullName}}

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions