mirror of
https://github.com/aykhans/slash-e.git
synced 2026-11-10 15:41:09 +00:00
chore: tweak shortcut status code
This commit is contained in:
1 parent
c571720d42
commit
5d703f563a
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user