Fenici
Fenici

Reputation: 461

Page Not Redirecting

Everything seems fine, but the page won't redirect to the designated URL.

My Route

GET         /reset/ask                controllers.ResetController.ask()

My Controller

    public Result ask() {
    Form<AskForm> askForm = form(AskForm.class);
    return ok(views.html.reset.ask.render(askForm));
}

My View

View -> Reset -> ask.scala.html

My HTML

  <a href="@controllers.routes.ResetController.ask">Forgot Password?</a>

When I click the page, it just stays on the current page?

Any Suggestions? thanks

Upvotes: 0

Views: 39

Answers (1)

Igmar Palsenberg
Igmar Palsenberg

Reputation: 647

As discussed on gitter : The ResetController.ask() is protected by the @Secured annotation, while it should be exempt from that.

Upvotes: 1

Related Questions