Skip to content

Commit

Permalink
fix: root local context search result link
Browse files Browse the repository at this point in the history
Fix #884
  • Loading branch information
ptitFicus committed Sep 26, 2024
1 parent 3f1ea20 commit 373e06c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/fr/maif/izanami/web/SearchController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ class SearchController(
})
})
)
.getOrElse(Future.successful(Seq()))
.getOrElse( // If there is no parent nor global parents, this is a root local context
Future.successful(Seq(ProjectPathElement((rowJson \ "project").as[String])))
)
}
case _ => Seq.empty.future
}
Expand Down

0 comments on commit 373e06c

Please sign in to comment.