Skip to content

Commit

Permalink
#140 Fix default redirection when context is /
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 9, 2018
1 parent 031b6dc commit 024b1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/org/thp/cortex/controllers/Default.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import javax.inject.{ Inject, Singleton }
@Singleton
class Default @Inject() (configuration: Configuration, components: ControllerComponents) extends AbstractController(components) {
def home: Action[AnyContent] = Action {
Redirect(configuration.get[String]("play.http.context") + "/index.html")
Redirect(configuration.get[String]("play.http.context").stripSuffix("/") + "/index.html")
}
}

0 comments on commit 024b1ff

Please sign in to comment.