fix(url): replace not found with home page
This commit is contained in:
parent
98ba6d23cb
commit
83a9a18f07
2 changed files with 1250 additions and 1246 deletions
2491
compiled/Main.js
2491
compiled/Main.js
File diff suppressed because it is too large
Load diff
|
@ -487,10 +487,11 @@ itemize multikeys entry =
|
|||
sitemap : Dict String (Model -> List (Html Msg))
|
||||
sitemap =
|
||||
Dict.fromList
|
||||
(itemize ([ "/", "/index.html" ] ++ getPaths "src" ++ getPaths "index" ++ getPaths "home" ++ getPaths "macgregor/www/src") pageHome
|
||||
(itemize ([ "/", "/index.html" ] ++ getPaths "src" ++ getPaths "index" ++ getPaths "home") pageHome
|
||||
++ itemize (getPaths "entries") pageEntries
|
||||
++ itemize (getPaths "about") pageAbout
|
||||
++ itemize (getPaths "colophon") colophon
|
||||
++ itemize (getPaths "404") notFound
|
||||
)
|
||||
|
||||
|
||||
|
@ -506,7 +507,7 @@ loadUrl model =
|
|||
builder model
|
||||
|
||||
Nothing ->
|
||||
notFound model
|
||||
pageHome model
|
||||
|
||||
|
||||
view : Model -> Browser.Document Msg
|
||||
|
|
Loading…
Reference in a new issue