mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix(homepage): prioritize container name and alias as display name
This commit is contained in:
parent
ead27c72f1
commit
0387739b94
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue