chore: tweak shortcut status code

This commit is contained in:
johnnyjoy 2024-08-18 12:45:43 +08:00
parent c571720d42
commit 5d703f563a

View File

@ -98,7 +98,7 @@ func (s *FrontendService) registerRoutes(e *echo.Echo) {
}
// Inject shortcut metadata into `index.html`.
indexHTML := strings.ReplaceAll(rawIndexHTML, headerMetadataPlaceholder, generateShortcutMetadata(shortcut).String())
return c.HTML(http.StatusSeeOther, indexHTML)
return c.HTML(http.StatusPermanentRedirect, indexHTML)
})
e.GET("/c/:collectionName", func(c echo.Context) error {