-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞 [Bug]: v3 Flash Message with redirect is not working #3038
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
thanks for the report we will have a look in the next hours/days |
thx for the report example: package main
import (
"fmt"
"log"
"github.com/gofiber/fiber/v3"
)
func main() {
app := fiber.New()
app.Get("/redirectWithRoute", func(c fiber.Ctx) error {
return c.Redirect().With("status", "Logged in successfully").Route("base")
})
app.Get("/redirectWithTo", func(c fiber.Ctx) error {
return c.Redirect().With("status", "Logged in successfully").To("/")
})
app.Get("/", func(c fiber.Ctx) error {
fmt.Println("messages", c.Redirect().Messages())
// => Logged in successfully
return c.SendString(c.Redirect().Message("status"))
}).Name("base")
log.Fatalln(app.Listen(":3000"))
} curl currently there is only the flash messages functionality in the Lines 204 to 233 in ba6ea67
but we will move this to the because other methods( |
Question Description
I am sending flash message using below code
return c.Redirect().With("status","added").To("/dashboard")
and try to retrieve it using below code
message := c.Redirect().Message("status")
Not getting anything.
Is there anything wrong?
Checklist:
The text was updated successfully, but these errors were encountered: