Skip to content

Commit

Permalink
Better handle 404 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
amitaibu committed Jun 15, 2016
1 parent 1bce938 commit 2df6f68
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 2df6f68

Please sign in to comment.