From f1912780cfcf827af03e703af3668b79a9d7b01c Mon Sep 17 00:00:00 2001 From: Arohan Agate Date: Wed, 14 Feb 2024 00:27:14 -0800 Subject: [PATCH] modified URL to keep user on correct route --- app/views/explore.scala.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/explore.scala.html b/app/views/explore.scala.html index 5405bb02c8..eb5afc33f5 100644 --- a/app/views/explore.scala.html +++ b/app/views/explore.scala.html @@ -10,7 +10,11 @@ @cityName = @{cityNameShort.getOrElse(Messages(s"city.name.$cityId"))} @main(title, Some("/explore")) { - @navbar(user, Some("/explore")) + @if(userRoute.isDefined) { + @navbar(user, Some(s"/explore?routeId=${userRoute.get.routeId}&resumeRoute=true")) + } else { + @navbar(user, Some("/explore")) + }