Skip to content

Commit

Permalink
Merge pull request #15 from Gizra/404-page
Browse files Browse the repository at this point in the history
Better handle 404 pages
  • Loading branch information
amitaibu authored Jun 15, 2016
2 parents 1bce938 + 2df6f68 commit ccbceb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/elm/App/Router.elm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ delta2url previous current =
location2messages : Location -> List Msg
location2messages location =
case location.hash of
"" ->
[]

"#login" ->
[ SetActivePage Login ]

Expand All @@ -35,4 +38,4 @@ location2messages location =
[ SetActivePage PageNotFound ]

_ ->
[]
[ SetActivePage PageNotFound ]

0 comments on commit ccbceb7

Please sign in to comment.