Skip to content

Commit

Permalink
🐛 fix: update redirect URL pattern to match new RESTful endpoint stru…
Browse files Browse the repository at this point in the history
…cture
  • Loading branch information
watzon committed Nov 20, 2024
1 parent 4c50e80 commit e031037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/services/paste.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (s *PasteService) RenderPaste(c *fiber.Ctx, paste *models.Paste) error {
if s.isImageContent(paste.MimeType) {
return s.RenderRawContent(c, paste)
}
return c.Redirect("/download/" + paste.ID)
return c.Redirect("/p/" + paste.ID + "/download")
}

// RenderRawContent serves the raw content with proper content type
Expand Down

0 comments on commit e031037

Please sign in to comment.