mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 21:02:33 +03:00
Fix issue with url normalize function that caused "Missing content" flash on root page.
This commit is contained in:
parent
fbdcc5ae74
commit
a8f114c0eb
@ -205,19 +205,23 @@ normalizePath pathString =
|
||||
hasSuffix =
|
||||
String.endsWith "/" pathString
|
||||
in
|
||||
String.concat
|
||||
[ if hasPrefix then
|
||||
""
|
||||
if pathString == "" then
|
||||
"/"
|
||||
|
||||
else
|
||||
"/"
|
||||
, pathString
|
||||
, if hasSuffix then
|
||||
""
|
||||
else
|
||||
String.concat
|
||||
[ if hasPrefix then
|
||||
""
|
||||
|
||||
else
|
||||
"/"
|
||||
]
|
||||
else
|
||||
"/"
|
||||
, pathString
|
||||
, if hasSuffix then
|
||||
""
|
||||
|
||||
else
|
||||
"/"
|
||||
]
|
||||
|
||||
|
||||
parseContent :
|
||||
|
Loading…
Reference in New Issue
Block a user