mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-16 04:13:12 +00:00
chore: tweak shortcut status code
This commit is contained in:
parent
c571720d42
commit
5d703f563a
@ -98,7 +98,7 @@ func (s *FrontendService) registerRoutes(e *echo.Echo) {
|
|||||||
}
|
}
|
||||||
// Inject shortcut metadata into `index.html`.
|
// Inject shortcut metadata into `index.html`.
|
||||||
indexHTML := strings.ReplaceAll(rawIndexHTML, headerMetadataPlaceholder, generateShortcutMetadata(shortcut).String())
|
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 {
|
e.GET("/c/:collectionName", func(c echo.Context) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user