Fix issue with url normalize function that caused "Missing content" flash on root page.

This commit is contained in:
Dillon Kearns 2020-02-02 14:23:41 -08:00
parent fbdcc5ae74
commit a8f114c0eb

View File

@ -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 :