FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixed missing feature trailblock · devhttps/frontend@512cc0d · GitHub

Commit 512cc0d

Browse files
committed
Fixed missing feature trailblock
1 parent 134b49b commit 512cc0d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎front/app/controllers/FrontController.scala‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ object FrontPage {
7979
class FrontController extends Controller with Logging with JsonTrails with ExecutionContexts {
8080

8181
val EditionalisedKey = """(.*\w\w-edition)""".r
82-
val FrontKey = """(\w\w-edition)""".r
82+
val FrontPath = """(\w\w-edition)?""".r
8383

8484
val front: Front = Front
8585

@@ -102,8 +102,7 @@ class FrontController extends Controller with Logging with JsonTrails with Execu
102102
// TODO this must die, configured trailblock should not be in there in the first place if we don't want it.......
103103
// filter out configured trailblocks if not on the network front
104104
path match {
105-
case FrontKey(_) => false
106-
case "front" => false
105+
case FrontPath(_) => false
107106
case _ => trailblock.description.isConfigured
108107
}
109108
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL