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

flash cookie and redirect #70

Closed
zoza opened this Issue Jan 27, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@zoza
Contributor

zoza commented Jan 27, 2013

add line flashCookie.success("redirect to page %s ", "/"); to redirect action (from demo)

 public Result redirect(Context context,FlashCookie flashCookie) {
        flashCookie.success("redirect to page %s ", "/");
        // Redirects back to the main page simply call redirect
        return Results.redirect("/");
}

and in index.ftl.html

<#if flash_success??>
        <p class="success">${flash_success}</p>
</#if>

open http://localhost:8080/redirect
redirected to / but flashCookie message is not shown

@raphaelbauer

This comment has been minimized.

Contributor

raphaelbauer commented Jan 28, 2013

Hi Anatoly,
thanks for pointing that out! We'll fix that asap :)
ra!

@raphaelbauer

This comment has been minimized.

Contributor

raphaelbauer commented Jan 28, 2013

Can you try with the latest develop? Should be fixed by now (with a testcase). The flash cookie had 1970 as timestamp what caused trouble...

66f7b87

Thanks for reporting this :)

Raphael

@zoza

This comment has been minimized.

Contributor

zoza commented Jan 28, 2013

yes, in my simple test it works

@zoza zoza closed this Jan 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment