mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-19 07:43:54 +01:00
fix(homepage): prioritize container name and alias as display name
This commit is contained in:
@@ -246,7 +246,7 @@ func (r *Route) TargetURL() *net.URL {
|
||||
func (r *Route) References() []string {
|
||||
if r.Container != nil {
|
||||
if r.Container.ContainerName != r.Alias {
|
||||
return []string{r.Container.Image.Name, r.Container.ContainerName, r.Alias, r.Container.Image.Author}
|
||||
return []string{r.Container.ContainerName, r.Alias, r.Container.Image.Name, r.Container.Image.Author}
|
||||
}
|
||||
return []string{r.Container.Image.Name, r.Alias, r.Container.Image.Author}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user