Skip to content

redirect doesn't work if application.path is set #469

@jknack

Description

@jknack

Setting application.path to /something the following redirect doesn't work:

{
  get("/success", () -> "OK");

  get("/redirect", () -> Results.redirect("/success"))
}

The /redirect path doesn't work bc context path is missing :S

As a workaround we need to set/specify the context path:

get("/redirect", () -> Results.redirect("/something/success"))

But this shoud be done automatically

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions