diff --git a/routes/configs.go b/routes/configs.go index 73b6902..7dd17c7 100644 --- a/routes/configs.go +++ b/routes/configs.go @@ -131,8 +131,8 @@ func ConfigRoute(c *fiber.Ctx) error{ } for _, cur := range configs { - if cur.Name == name { - return c.Redirect(cur.Redirect) + if cur.Name == name || cur.Name+".git" == name { + return c.Status(301).Redirect(cur.Redirect) } }