From 024b1ff9d6b07a57837546ef13f5f991ffbb27c6 Mon Sep 17 00:00:00 2001 From: To-om Date: Tue, 9 Oct 2018 16:25:44 +0200 Subject: [PATCH] #140 Fix default redirection when context is / --- app/org/thp/cortex/controllers/Default.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/org/thp/cortex/controllers/Default.scala b/app/org/thp/cortex/controllers/Default.scala index 9dee36cc9..99090f9f4 100644 --- a/app/org/thp/cortex/controllers/Default.scala +++ b/app/org/thp/cortex/controllers/Default.scala @@ -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") } } \ No newline at end of file