|
| 1 | +diff --git a/codegen/elm-pages-codegen.cjs b/codegen/elm-pages-codegen.cjs |
| 2 | +index 23614931f4601b018de0551b2991afdbdf64ddf9..9b9d540dde9a20ffba31cb82dfe8fb6dfd0e44f9 100644 |
| 3 | +--- a/codegen/elm-pages-codegen.cjs |
| 4 | ++++ b/codegen/elm-pages-codegen.cjs |
| 5 | +@@ -23712,11 +23712,18 @@ var $author$project$Generate$file$ = function (templates, basePath) { |
| 6 | + _Utils_Tuple2('path', $mdgriffith$elm_codegen$Elm$Annotation$string) |
| 7 | + ]))), |
| 8 | + function (url) { |
| 9 | ++ var urlPath = $mdgriffith$elm_codegen$Elm$get$('path', url); |
| 10 | ++ var strippedPath = $mdgriffith$elm_codegen$Elm$ifThen$( |
| 11 | ++ A2($author$project$Gen$String$call_.startsWith, $mdgriffith$elm_codegen$Elm$string(basePath), urlPath), |
| 12 | ++ A2( |
| 13 | ++ $author$project$Gen$String$call_.dropLeft, |
| 14 | ++ $author$project$Gen$String$call_.length($mdgriffith$elm_codegen$Elm$string(basePath)), |
| 15 | ++ urlPath), |
| 16 | ++ urlPath); |
| 17 | + return $mdgriffith$elm_codegen$Elm$withType$( |
| 18 | + $mdgriffith$elm_codegen$Elm$Annotation$maybe(routeType.annotation), |
| 19 | + segmentsToRouteFn.call( |
| 20 | +- $author$project$Generate$splitPath.call( |
| 21 | +- $mdgriffith$elm_codegen$Elm$get$('path', url)))); |
| 22 | ++ $author$project$Generate$splitPath.call(strippedPath))); |
| 23 | + })); |
| 24 | + var routeToPathFn = $author$project$Generate$routeToPath$(routeType, routes); |
| 25 | + var baseUrl = $mdgriffith$elm_codegen$Elm$Declare$value$( |
0 commit comments